Page 1 of 1
phoca search problem - right page wrong menu item
Posted: 27 Jun 2013, 07:14
by heyitsben
HI, I've tried searching the forums but have not found anything similar. I have installed the phoca search plugin, it works great but displays the page with the wrong menu title. I have Phoca version 2.8.1
For example, if this is the actual page I want to find during a search:
This is what is found during a search ("Other" is shown rather than "2013"):
If I unpublish the "other" menu item, another menu item is assigned to the page but it is not correct. Is there a way to fix this?
Re: phoca search problem - right page wrong menu item
Posted: 01 Jul 2013, 16:27
by europower
Same here. The ItemId will always be te lowest Phocagallery related menu item id.
Re: phoca search problem - right page wrong menu item
Posted: 08 Jul 2013, 13:12
by Jan
Re: phoca search problem - right page wrong menu item
Posted: 08 Jul 2013, 16:50
by europower
Thanks Jan for the quick responds.
We read the article you referred to but that didn't solve our problem. So we did a little coding of our own and found that there is a solution. A small function within the search plugin (you can query the correct MenuID) solved the search problem.
Re: phoca search problem - right page wrong menu item
Posted: 09 Jul 2013, 20:20
by heyitsben
Hi Europower, is there any chance you can share your solution? I am not much of a coder :/
Re: phoca search problem - right page wrong menu item
Posted: 11 Jul 2013, 15:05
by europower
Hello heyitsben,
We would like to give back to the community, but it's not going to be simple.
We changed several files and some have hardcoded lines inside (we are not happy about that) that will only work in our installation.
For example, we changed following files:
Using Overrides:
templates\yourtemplate\html\com_phocagallery\categories\default_catimg.php (breadcrumbs fix, but hardcoded)
templates\yourtemplate\html\com_search\search\default_results.php (for showing thumbsnails inside search result)
Phoca code adjustments
components\com_phocagallery\views\category\view_html.php (breadcrumbs fix)
plugins\search\phocagallery\phocagallery.php (big changes for breadcumbs and thumbnail view)
Last file has most of the code but also has 2 hardcodes lines (looking to get this fixed)
The thumbnail view within the search is pretty nice do
Let me get back to you regarding the fix (probably after our new website will be released - september this year) maybe we will have a fix for the hardcoded lines.
Re: phoca search problem - right page wrong menu item
Posted: 12 Jul 2013, 21:15
by Jan
Ok
Re: phoca search problem - right page wrong menu item
Posted: 13 Jul 2013, 20:38
by heyitsben
Ok it sounds too complicated for me, I will just leave it for now. If you end up with a fix for the hardcoded lines I would be very grateful for the solution. Thanks and good luck with the new website.