tree module links to wrong page

Phoca Gallery modules - modules for Phoca Gallery extension
Vlistomatic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 01 Jul 2008, 10:32

tree module links to wrong page

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

Re: tree module links to wrong page

Post 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
If you find Phoca extensions useful, please support the project
Vlistomatic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 01 Jul 2008, 10:32

Re: tree module links to wrong page

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

Re: tree module links to wrong page

Post 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
If you find Phoca extensions useful, please support the project
Vlistomatic
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 01 Jul 2008, 10:32

Re: tree module links to wrong page

Post 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.
Post Reply