How to get current Folder in pagelayout.tpl?

Author Message

Jason Wehmhoener

Sunday 13 April 2003 1:05:55 pm

How can I get the name of the current Folder in pagelayout.tpl or pagelayout_section_#.tpl? I want to get the current position within the path, preferably without looping through the entire path, as in the Bread Crumbs example included in the demo.

Also, I noticed that I cannot get $node.name in pagelayout.tpl, although it is possible to get it in one of the class templates, such as full_class_1.tpl. Is there some code I can use to display all the template variables, content objects and attributes that are accessible from various templates?

http://ezwiki.blanko.info/index.php/3XHT_SeeTmpls does a good job of explaining how to see which templates are in use on a page and http://ezwiki.blanko.info/index.php/Custom%20designs%20-%20directory%20structure%20explained%20%283.x%29 does a good job of explaining the template directory structure, but I cannot find documentation that explains which variables, etc are available within each template. Documentation seems to be partial here, but I'd be satisfied with some debug code that will help me sort things out.

Thanks in advance!

Paulo Almeida

Monday 14 April 2003 3:54:28 am

I really don't know what you want but...... i'll try to help.
Insert this code in pagelayout.tpl, {$module_result|attribute(show)}, and you will get all attributes you have in $module_result variable, I think this will help you.

PACPI.COM Internet Consulting
http://pacpi.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.