treemenu configuration help needed

Author Message

Alessandro Cipriani

Wednesday 14 January 2004 2:28:15 am

hi all
i downloaded the treemenu extension, registered it and included it in my pagelayout.tpl template. without changing anything in the treemenu1.tpl file.
the site is organized as follows:

-home
--the group
---my group
---the group in the world

and so on

and it has an horizontal main menu, while i'm trying to install the vertical treemenu

the problem is that i only see the parent of the node i select (on the main menu) without viewing it and its sons!
(if i select "the group" in my treemenu i only can see "home", and i can't see "my group" and "the group in the world")

i need some help on the configuration!
thanx a lot
alessandro

James Packham

Wednesday 14 January 2004 4:12:26 am

I'm not sure if this helps (as I'm not sure what your question is!!) but you know that your node contains an array of all the children? Look in $node.path array.

For example I use it in the template full for my articles to show the name of folder y in this layout:

---- folder x
------- folder y
----------- article a
----------- article b

Using this code:

<p class="title">latest articles in {$node.path[2].name} </p>

I can show the id of that node like so:

<p class="title">latest articles in {$node.path[2].node_id} </p>

Does that help?

Regards,

~James~

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