Page 1 of 1

tree module links to wrong page

Posted: 11 Jul 2008, 16:55
by Vlistomatic
Hi Jan,

I've a minor problem with the tree module. It links to a different place(url) if compared to a click on a gallery directly in the component.

For example when i click via the main component on a gallery the url is:
/index.php?option=com_phocagallery&view=category&id=15:allereerstealv&Itemid=94

But when i want to open the same gallery via the tree module the url is:
/index.php?option=com_phocagallery&view=category&id=15&Itemid=200

It shows the same photo's, however in a somewhat different layout and the tree module disappears. The only difference is the itemid in the url. How can I set this to 94?

Gallery 1.8.8
module 1.8.0
joomla 1.5.3
website: http://www.tritanium.nl (http://www.tritanium.nl/index.php?optio ... &Itemid=94)

Re: tree module links to wrong page

Posted: 11 Jul 2008, 20:11
by Jan
Hi, the problem is, that plugins and modules does't have own Itemid, so hack must be done... Plugins and Modules try to find some menu link to get the Itemid from them... Mostly they should take the Categories view Itemid... Did you create a menu link to categories view ?

Jan

Re: tree module links to wrong page

Posted: 12 Jul 2008, 09:00
by Vlistomatic
Hi,

I'v a link in the mainmenu to the Phoca Gallery Category List Layout. That's also the only menu item linking the phoca gallery

Re: tree module links to wrong page

Posted: 13 Jul 2008, 21:31
by Jan
So the tree module takes the Itemid from the category list, so it can take different settings from different category menu items..

Try to add the categries view menu link (link to all categories)... Tree module should take the Itemid from this menu link...

Jan

Re: tree module links to wrong page

Posted: 14 Jul 2008, 11:22
by Vlistomatic
I installed, at last, the tree module and the phoca gallery again. Maybe not the most elegant way but it works again. thanks for the help.