Where to set the parameters for the Tree module?

Phoca Gallery modules - modules for Phoca Gallery extension
xshi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Aug 2008, 15:56

Where to set the parameters for the Tree module?

Post by xshi »

Hi Jan,

Thank you for the wonderful code! I have moved all my previous pictures from JAlbums to Phoca Gallery :)

I changed the pop-up window size parameter to 820x660 both in the menu and the gallery settings, they worked well. However, when I add in the Tree module, if I click on the items in the tree, it loads the defaul parameter (640x480). I'm wondering where to set this parameter in the Tree module?

My website is : http://www.xshi.org/

Thanks!
Xin
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47935
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where to set the parameters for the Tree module?

Post by Jan »

Hi, tree module creates link to categories (but modules don't have onw Itemids, so module must find some Itemid from the component)... If the Phoca Gallery doesn't have the Itemid then it doesn't have the parameters of this Itemid (parameters component)...

So please make some menu link e.g. to CATEGORIES VIEW (list of categories), then the module should find this Itemid and will use this (if you don't want to enable the link, you should create some menu group, where you create the menu link ... the menu link will be published and menu group unpublished... In this case, the menu link exists (module find the right item id) but menu group will be not displayed)

Jan
If you find Phoca extensions useful, please support the project
xshi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Aug 2008, 15:56

Re: Where to set the parameters for the Tree module?

Post by xshi »

Hi Jan,

Thanks for your reply!

Does that mean I have to create menu link to all of the categories (in my case about 40) and set the parameters for them? Are there ways to set the global parameters?

Xin
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47935
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where to set the parameters for the Tree module?

Post by Jan »

Just create the link to all categories (in is not a link to all categories but only one link to site which displays all categories :wink: ) so you will create only one link to CATEGORIES VIEW...

Jan
If you find Phoca extensions useful, please support the project
xshi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Aug 2008, 15:56

Re: Where to set the parameters for the Tree module?

Post by xshi »

Hi Jan,

I think I already have that "all category" menu link, which is the "Gallery" on the top menu on my homepage:

http://www.xshi.org/

Do I need to tell the Tree Module about this link?

Thanks!

Xin
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47935
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where to set the parameters for the Tree module?

Post by Jan »

No, tree should automatically take the Itemid

see FAQ, question 2
https://www.phoca.cz/documentation/index ... ent/24-faq

but if I see your site, the itemid is here, there is itemid 19, so Tree module takes the settings from menu item 19, see settings (Parameters component in Menu item 19)


Jan
If you find Phoca extensions useful, please support the project
xshi
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 03 Aug 2008, 15:56

Re: Where to set the parameters for the Tree module?

Post by xshi »

Hi Jan,

The problem has finally solved!

As you pointed out the item id 19, I tried to look for that menu. It turns out that it was an old Gallery menu item which I created in the main menu long time ago. Then after that, I created another Gallery menu in the top menu, which is labled 22. So, when the Tree module was created, it automatically chose the earlier one (19), that's why it didn't use the 22 parameters.

Thank you very much!

Xin
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47935
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Where to set the parameters for the Tree module?

Post by Jan »

Great to hear it, Jan
If you find Phoca extensions useful, please support the project
Post Reply