Page 1 of 1

Where to set the parameters for the Tree module?

Posted: 03 Aug 2008, 16:12
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

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

Posted: 03 Aug 2008, 19:14
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

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

Posted: 06 Aug 2008, 19:23
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

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

Posted: 07 Aug 2008, 00:47
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

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

Posted: 14 Aug 2008, 00:19
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

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

Posted: 15 Aug 2008, 19:48
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

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

Posted: 16 Aug 2008, 20:42
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

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

Posted: 17 Aug 2008, 18:18
by Jan
Great to hear it, Jan