Page 1 of 1
Phoca Gallery Tree template selection
Posted: 17 Nov 2011, 16:27
by Kordian
Hi again,
I have a site where I use multiple templates (Joomla 1.7).
I wanted to use PG Tree module, but when I click on anything there, the gallery is displayed in the default template.
Is there a way to specify template for all the items inside PG Tree module?
Thanks in advance for help.
Regards
Kordian
Re: Phoca Gallery Tree template selection
Posted: 18 Nov 2011, 00:24
by Jan
Hi, the tree module set the itemid find by the menu link to gallery - so by this itemid the template needs to be set, see:
Using SEF in Joomla!
Re: Phoca Gallery Tree template selection
Posted: 20 Nov 2011, 13:35
by Kordian
OK, thanks, it seems to be working with one gallery and one gallery template.
What if I want to use multiple PG Tree modules on different pages with different templates (I mean system templates, not PG Themes).
To make it clear an example:
on the main page (which uses Template1) I have 2 menu (normal vertical menu) items, one pointing to the Cars Gallery (which uses Template2) and Girls Gallery (which uses Template3). After clicking Cars Gallery, the new template (Template2) is loaded and Cars PG Tree module is displayed (containing only PG categories from "Cars" PG Category). The goal is that when a PG Tree module item is clicked, Template2 remains.
After coming back to the main page, click on Girls Gallery opens the Gallery with its template (Template3) and Girls PG Tree module (containing only PG categories from "Girls" PG Category). From what you suggested (and if I understood the "Using SEF in Joomla!" article correctly) when I now click on any tree item, the Template2 will be used. And I want the Template3 here.
Thanks in advance for any help.
Regards
Kordian
Re: Phoca Gallery Tree template selection
Posted: 23 Nov 2011, 19:34
by Jan
Hi, everything in Joomla! is managing by Itemid - you can assign templates, modules, etc. to menu links - itemids, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
and similar articles.
Jan
Re: Phoca Gallery Tree template selection
Posted: 28 Nov 2011, 19:25
by Kordian
Sorry, but I see no connection there.
Created a new menu item (PG Girls), configured the template, but this does not work, I get the default template. The Cars PG Tree menu displays everything correctly, the Girls PG Tree still displays the default template.
Moreover, after creating the Girls PGT (with excluded Car categories), when I hit any Car Gallery within Cars PG Tree, I get an error:
Fatal error: Cannot redeclare categorytree() (previously declared in /share/MD0_DATA/Web/joomla/modules/mod_phocagallery_tree/mod_phocagallery_tree.php:121) in /share/MD0_DATA/Web/joomla/modules/mod_phocagallery_tree/mod_phocagallery_tree.php on line 131
Regards
Re: Phoca Gallery Tree template selection
Posted: 30 Nov 2011, 16:32
by Jan
Hi, the tree menu module is one instance module - can be run only one on the page
Jan
Re: Phoca Gallery Tree template selection
Posted: 30 Nov 2011, 16:38
by Kordian
Pity.
Make it multi, please.
Regards
Re: Phoca Gallery Tree template selection
Posted: 30 Nov 2011, 17:23
by Jan
Added into feature request list.
Jan
Re: Phoca Gallery Tree template selection
Posted: 30 Nov 2011, 18:09
by Kordian
Thank you.