Problem with path

Phoca Gallery - image gallery extension
absenthe160
Phoca Member
Phoca Member
Posts: 11
Joined: 25 Mar 2011, 12:21

Problem with path

Post 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
absenthe160
Phoca Member
Phoca Member
Posts: 11
Joined: 25 Mar 2011, 12:21

Re: Problem with path

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

Re: Problem with path

Post by Jan »

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