Page 1 of 1

Problem with path

Posted: 03 Apr 2011, 13:26
by absenthe160
Hi!
I have installed Phoca Gallery and Phoca image modul, which i have linked to category.

THE PROBLEM!
When I enter to category directly from menu it builds path with itemID such as (index.php?option=com_phocagallery&view=category&id=96%3Ared-ezra&Itemid=44&lang=ru), but when I enter the same category from Phoca Image Modul there is no itemID in path like this (index.php?option=com_phocagallery&view=category&id=96%3Ared-ezra&lang=ru).
But I need pathes WITH ITEMID, because there are many things go wrong when there is no itemID (SEF links, breadcrumbs, page headers which have to be different in every menu......)
Please help me whith this problem!!!! :x

Re: Problem with path

Posted: 05 Apr 2011, 22:08
by absenthe160
Hi. I have found the solution myself.
Here it is.
I entered /modules/mod_phocagallery_image/mod_phocagallery_image.php and in the line 619 changed the "$siteLink = $imgLinkOrig = $imgLink = PhocaGalleryRoute::getCategoryRoute($valueImages->catid, $valueImages->catalias);" with this "$siteLink = $imgLinkOrig = $imgLink = PhocaGalleryRoute::getCategoryRoute('index.php?option=com_phocagallery&view=category&id='. $valueImages->catid, $valueImages->catalias.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );". And everything began to work the way I wanted.
But now another problem has araised :idea: everything works fine before I turn on SEO links, after I turn them on everything begins work on the old way. Now when I enter the gallery from joomla menu there is link like this "/ru/pic/glam/category/96-red-ezra.html". but when I enter the same gallery from Phoca image module the link look likes this "/ru/component/phocagallery/category/96.html". And everythig works wrong :roll:
If anyone can help me with this I will be very grateful!!!
If not, I`l tell when I solve this problem......

Re: Problem with path

Posted: 07 Apr 2011, 22:21
by Jan