The Search Plugin
https://www.phoca.cz/phocagallery-search-plugin/
doesn't work if you have your site search engine friendly.
It will display the gallery, but once you click the image you get an error page.
I have modify the code to work with my site
on line
108 $list2[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $item->id );
with $list2[$key]->href = JRoute::_('/galleries/category/'. $item->id );
and line
165 $list1[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='.$item->catslug );
with $list1[$key]->href = JRoute::_('/galleries/category/'.$item->catslug );
The site that I am using this on is http://www.munkeeworks.com
Search Plugin
- Jan
- Phoca Hero
- Posts: 48535
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Search Plugin
hi, yes it is a known issue, I must find time to add the sef hack here (find the menu item and paste itemid to correctly displaying by JRoute)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 33
- Joined: 11 Mar 2009, 22:41
Re: Search Plugin
What file have you made these changes to? I need to have the search work, but would like to keep my site search engine friendly.
Thanks
Thanks
- Jan
- Phoca Hero
- Posts: 48535
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Search Plugin
Such hack I am using in e.g. Phoca Gallery tree menu, but the search plugin I didn't do, so I need to take a look at it, but don't know when I find time for it ![Sad :-(](./images/smilies/icon_sad.gif)
Jan
![Sad :-(](./images/smilies/icon_sad.gif)
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 33
- Joined: 11 Mar 2009, 22:41
Re: Search Plugin
I found the file:
plugins/search/phocagallery.php
I tried to turn on SEF and use his hack, but unfortunately nothing works then, It appears to not read style sheets in this mode. So I turned it off and will leave it off. I do not have the skills or the time to figure out what when wrong.
plugins/search/phocagallery.php
I tried to turn on SEF and use his hack, but unfortunately nothing works then, It appears to not read style sheets in this mode. So I turned it off and will leave it off. I do not have the skills or the time to figure out what when wrong.
- Jan
- Phoca Hero
- Posts: 48535
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Search Plugin
![Sad :(](./images/smilies/icon_sad.gif)
Jan
If you find Phoca extensions useful, please support the project