Share » Forums » Setup & design » treemenu configuration help needed

treemenu configuration help needed

treemenu configuration help needed

Wednesday 14 January 2004 2:28:15 am - 1 reply

Author Message

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~

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu