[SOLVED] Customizing PG Search plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

[SOLVED] Customizing PG Search plugin

Post 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!
Last edited by ruster1969 on 15 Mar 2016, 10:58, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customizing PG Search plugin

Post 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
If you find Phoca extensions useful, please support the project
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

Re: Customizing PG Search plugin

Post 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? :|
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

Re: Customizing PG Search plugin

Post 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:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customizing PG Search plugin

Post 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
If you find Phoca extensions useful, please support the project
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

Re: Customizing PG Search plugin

Post 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! :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customizing PG Search plugin

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply