Page 1 of 1

[SOLVED] Customizing PG Search plugin

Posted: 09 Mar 2016, 12:25
by ruster1969
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:

Image

My PG version is 4.2.1.

Thanks in advance for any suggestion!

Re: Customizing PG Search plugin

Posted: 10 Mar 2016, 17:04
by Jan
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 :idea:

Jan

Re: Customizing PG Search plugin

Posted: 10 Mar 2016, 18:33
by ruster1969
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 :idea:

Jan
Hi Jan,
I beg your pardon for my bad English :oops:

Did you see the circled words in the image?
I'd like to change them, i.e. "PhotoStoria" instead of "Phoca Gallery".

Image

I can't find any language file of the PG Search plugin, do I have to download it? :|

Re: Customizing PG Search plugin

Posted: 10 Mar 2016, 20:19
by ruster1969
In file ../plugins/search/phocagallery/phocagallery.php, ca lines 67 & 129:

Code: Select all

'phocagallery' => 'PLG_SEARCH_PHOCAGALLERY_PHOCAGALLERY'

Code: Select all

$section = JText::_( 'PLG_SEARCH_PHOCAGALLERY_PHOCAGALLERY');
Where is the file *.ini which contains this data?

Otherwise I can change these lines into:

Code: Select all

'phocagallery' => 'PhotoStoria'

Code: Select all

$section = 'PhotoStoria';
:wink:

Re: Customizing PG Search plugin

Posted: 11 Mar 2016, 01:57
by Jan
Hi, you can change it directly, the language file is stored in:

administrator\language\en-GB\en-GB.plg_search_phocagallery.ini

Jan

Re: Customizing PG Search plugin

Posted: 11 Mar 2016, 13:16
by ruster1969
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
You're right... thanks again! :|

Re: Customizing PG Search plugin

Posted: 12 Mar 2016, 15:00
by Jan
Ok