Hi Phoca team,
First congratulation for the quality of your Phoca Gallery component.
I'm having some troubles with itemid in Phoca Gallery.
I've created several parent categrories containing each several subcategries.
Each parent categories is linked to its menu. In my site there is 3 Phoca gallery parent categories and 3 Joomla! menu.
For the first created couple parent category/menu everything is working well. For this menu the itemid is 417
But for the other ones the link to access the list of images is containing the itemid of the previous first menu. When turning off SEF I could see that the itemid is 417, it should be 408 !
It's a bit annoying because there is some specific css styles attached to each menu (to each itemid).
For the moment the only workaround I've found is to create for each gallery (each subcategory) a specific menu.
But it forces me to duplicate many ccs and layout files.
I know that this topic was already mentioned in the forum, but I didn't found any solution.
I'm working with Joomla! 2.5.17/Phoca Gallery 3.2.6
Thank you for helping
Best regards
Itemid problem
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Itemid problem
Hi, try to see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
In fact, this is the limit of the system. When creating SEF link, you need to find the menu link id, so you can then try to create the menu link, but if there are more menu links, there is nothing which can tell you, user goes to site with such or other link id, so if there are more links, then there are such limits - the system just find the first menu item id and uses this.
(but don't ask me why the SEF is working like it works because I am not the SEF developer
)
Jan
https://www.phoca.cz/documents/16-joomla ... -in-joomla
In fact, this is the limit of the system. When creating SEF link, you need to find the menu link id, so you can then try to create the menu link, but if there are more menu links, there is nothing which can tell you, user goes to site with such or other link id, so if there are more links, then there are such limits - the system just find the first menu item id and uses this.
Jan
If you find Phoca extensions useful, please support the project
-
Delemo
- Phoca Newbie

- Posts: 3
- Joined: 21 Jan 2014, 17:45
Re: Itemid problem
Hi Jan,
Thank you for your reply.
In Joomla!, a readmore link keeps the same itemid as the one created for the category blog menu (correct me if I am wrong).
Can't we imagine Phoca Gallery is working the same way?
Best regards
Simon
Thank you for your reply.
In Joomla!, a readmore link keeps the same itemid as the one created for the category blog menu (correct me if I am wrong).
Can't we imagine Phoca Gallery is working the same way?
Best regards
Simon
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Itemid problem
Hi, it is not so easy to explain, I have tried it in many articles but this is hard topic.
If you have e.g. module or plugin, it does not know which menu it should select. If there is a link in module to Phoca Gallery, it does not know if it should create it to first categories link or to second categories link - so if there are two menu links to one component this is allways difficult.
If there is standard moving in tree - from categories to category to image and back, the link tries to have the same itemid.
And it is more complicated then it is described. I got a lot of different tasks from different SEF developer to use the JRoute method and its helpers to work properly in different SEF methods, etc.
The same with requests which need to switch the itemid - e.g. the request is - if you are located in detail or category view, you should go back to categories view but you should switch itemid to one of the categories view. In such case, you cannot just hold the itemid from category or detail view. So this is next complication - which way to select
If you will look at different parts of code and you will see the links, they include: &Itemid='. $this->itemId to try to still get the same ID but on some places this is not possible
... as written above.
But, yes, this can be a problem in situation, I will try to review this and will try find if there is no better way to handle it
Jan
Jan
If you have e.g. module or plugin, it does not know which menu it should select. If there is a link in module to Phoca Gallery, it does not know if it should create it to first categories link or to second categories link - so if there are two menu links to one component this is allways difficult.
If there is standard moving in tree - from categories to category to image and back, the link tries to have the same itemid.
And it is more complicated then it is described. I got a lot of different tasks from different SEF developer to use the JRoute method and its helpers to work properly in different SEF methods, etc.
The same with requests which need to switch the itemid - e.g. the request is - if you are located in detail or category view, you should go back to categories view but you should switch itemid to one of the categories view. In such case, you cannot just hold the itemid from category or detail view. So this is next complication - which way to select
If you will look at different parts of code and you will see the links, they include: &Itemid='. $this->itemId to try to still get the same ID but on some places this is not possible
But, yes, this can be a problem in situation, I will try to review this and will try find if there is no better way to handle it
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Delemo
- Phoca Newbie

- Posts: 3
- Joined: 21 Jan 2014, 17:45
Re: Itemid problem
Hi Jan,
Thank you for detailed reply.
I'm better realizing the difficulty of the task.
Just a naive suggestion:
In some component and some module (I'm thinking of Flexicontent) I've sometime found a field parameter where you could write an Itemid to help the component finding the good reference menu.
Best regards
Simon
Thank you for detailed reply.
I'm better realizing the difficulty of the task.
Just a naive suggestion:
In some component and some module (I'm thinking of Flexicontent) I've sometime found a field parameter where you could write an Itemid to help the component finding the good reference menu.
Best regards
Simon
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Itemid problem
Hi, thank you for the info, yes, this can be the way (anyway this method is used in Phoca Documentation but it heavily confuses the users
)
Anyway thank you, I will try to look a it (to add such parameter to Phoca Gallery too)
Jan
Anyway thank you, I will try to look a it (to add such parameter to Phoca Gallery too)
Jan
If you find Phoca extensions useful, please support the project
- l.wymann
- Phoca Newbie

- Posts: 4
- Joined: 01 Feb 2014, 12:26
Re: Itemid problem
Hi Jan
FIRST: great component. Love it. Thanks for the work!!!
Maybe I can contribute (in form of hints?) to the problem with missing itemid's and breadcrumbs not showing up:
For me it makes no sense that on one site it shows, and the other not.
After all, the content of the local db is a 1-to-1 copy from the web...
breadcrumb-code:
web:
Local pc:
Local-PC:
PHP-Version 5.3.10-1ubuntu3.9
Webserver Apache/2.2.22 (Ubuntu)
PHP-Interface für den Webserver apache2handler
Joomla!-Version Joomla! 3.2.1 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
web:
PHP-Version 5.3.3-7+squeeze17
Webserver Apache2 2.2.16-6+squeeze11
PHP-Interface für den Webserver cgi-fcgi
Joomla!-Version Joomla! 3.2.1 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Does that make sense to you? Difference in versions?
If I can be of any help towards a solution, let me know.
Thanks
Lukas
FIRST: great component. Love it. Thanks for the work!!!
Maybe I can contribute (in form of hints?) to the problem with missing itemid's and breadcrumbs not showing up:
For me it makes no sense that on one site it shows, and the other not.
After all, the content of the local db is a 1-to-1 copy from the web...
breadcrumb-code:
web:
Code: Select all
<div id="breadcrumb">
<ul class="breadcrumb">
<li class="active"><span class="divider icon-location hasTooltip" title="Aktuelle Seite: "></span></li><li><a href="/" class="pathway">Startseite</a><span class="divider"><img src="/media/system/images/arrow.png" alt="" /></span></li><li class="active"><span>Fotoalbum</span></li></ul>
</div> Code: Select all
<div id="breadcrumb">
<ul class="breadcrumb">
<li class="active"><span class="divider icon-location hasTooltip" title="Aktuelle Seite: "></span></li><li><a href="/" class="pathway">Startseite</a><span class="divider"><img src="/media/system/images/arrow.png" alt="" /></span></li><li><a href="/index.php/fotoalbum" class="pathway">Fotoalbum</a><span class="divider"><img src="/media/system/images/arrow.png" alt="" /></span></li><li><a href="/index.php/fotoalbum/category/8-ministranten" class="pathway">Ministranten</a><span class="divider"><img src="/media/system/images/arrow.png" alt="" /></span></li><li class="active"><span>Minis 2012</span></li></ul>
</div>PHP-Version 5.3.10-1ubuntu3.9
Webserver Apache/2.2.22 (Ubuntu)
PHP-Interface für den Webserver apache2handler
Joomla!-Version Joomla! 3.2.1 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
web:
PHP-Version 5.3.3-7+squeeze17
Webserver Apache2 2.2.16-6+squeeze11
PHP-Interface für den Webserver cgi-fcgi
Joomla!-Version Joomla! 3.2.1 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla!-Plattform-Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Does that make sense to you? Difference in versions?
If I can be of any help towards a solution, let me know.
Thanks
Lukas
- l.wymann
- Phoca Newbie

- Posts: 4
- Joined: 01 Feb 2014, 12:26
Re: Itemid problem
ooops... how can that be?
For your informations:
Just found out, that if I turn off caching in Joomla config, breadcrumbs are just functioning perfectly.
(saw that this was the difference on web and local installation).
I'd say: looks like a bug in joomla!?
Stil, if I can be of any help, let me know
Thanks.
Lukas
For your informations:
Just found out, that if I turn off caching in Joomla config, breadcrumbs are just functioning perfectly.
(saw that this was the difference on web and local installation).
I'd say: looks like a bug in joomla!?
Stil, if I can be of any help, let me know
Thanks.
Lukas
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Itemid problem
Hi, in such case, you can disable cache for Phoca Gallery only, in Phoca Gallery options, this is a half-way solution but if you need to have enabled cache for your site, only one part will be not cached 
If you find Phoca extensions useful, please support the project