Hi everybody,
I'm trying to customize some titles in PG Search Plugin but I can't.
I'd like to change label name in the checkbox menu and section name in the results:
My PG version is 4.2.1.
Thanks in advance for any suggestion!
[SOLVED] Customizing PG Search plugin
-
- Phoca Member
- Posts: 36
- Joined: 28 Aug 2015, 09:36
[SOLVED] Customizing PG Search plugin
Last edited by ruster1969 on 15 Mar 2016, 10:58, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Customizing PG Search plugin
Hi, can you paste screenshots of what you exactly mean.
You can change the strings which comes from the Phoca Gallery Search Plugin or Phoca Gallery - in language file of the plugin, but if then something is displayed in search results, such needs to be customized directly in Joomla! search component - it displays the output of search results
Jan
You can change the strings which comes from the Phoca Gallery Search Plugin or Phoca Gallery - in language file of the plugin, but if then something is displayed in search results, such needs to be customized directly in Joomla! search component - it displays the output of search results
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 36
- Joined: 28 Aug 2015, 09:36
Re: Customizing PG Search plugin
Hi Jan,Jan wrote:Hi, can you paste screenshots of what you exactly mean.
You can change the strings which comes from the Phoca Gallery Search Plugin or Phoca Gallery - in language file of the plugin, but if then something is displayed in search results, such needs to be customized directly in Joomla! search component - it displays the output of search results
Jan
I beg your pardon for my bad English
Did you see the circled words in the image?
I'd like to change them, i.e. "PhotoStoria" instead of "Phoca Gallery".
I can't find any language file of the PG Search plugin, do I have to download it?
-
- Phoca Member
- Posts: 36
- Joined: 28 Aug 2015, 09:36
Re: Customizing PG Search plugin
In file ../plugins/search/phocagallery/phocagallery.php, ca lines 67 & 129:
Where is the file *.ini which contains this data?
Otherwise I can change these lines into:
Code: Select all
'phocagallery' => 'PLG_SEARCH_PHOCAGALLERY_PHOCAGALLERY'
Code: Select all
$section = JText::_( 'PLG_SEARCH_PHOCAGALLERY_PHOCAGALLERY');
Otherwise I can change these lines into:
Code: Select all
'phocagallery' => 'PhotoStoria'
Code: Select all
$section = 'PhotoStoria';
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Customizing PG Search plugin
Hi, you can change it directly, the language file is stored in:
administrator\language\en-GB\en-GB.plg_search_phocagallery.ini
Jan
administrator\language\en-GB\en-GB.plg_search_phocagallery.ini
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 36
- Joined: 28 Aug 2015, 09:36
Re: Customizing PG Search plugin
You're right... thanks again!Jan wrote:Hi, you can change it directly, the language file is stored in:
administrator\language\en-GB\en-GB.plg_search_phocagallery.ini
Jan
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: