Share » Forums » Developer » treemenu

treemenu

treemenu

Thursday 17 November 2005 8:37:37 am - 2 replies

Author Message

Ɓukasz Serwatka

Friday 18 November 2005 1:19:32 am

You can fetch node by id and pass $node.path as first parameter.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Salvatore Guarino

Tuesday 22 November 2005 1:03:36 am

Dear Luke,

I try to follow your advice. It works, but I have a little problem with current node parameter. I used this code:

{def $my_node=fetch( 'content', 'node', hash( 'node_id', 616 ) )}
{let docs=treemenu( $my_node.path,

                    616,

                    array('folder', 'file','article', 'pdfw'), 1, 4 )

                    depth=1

                    last_level=0}

I would like to show a menu where selected node is the 616 (at 3th level), skipping the first level. It doesn't work correctly. I can view only parent node of 616, and other nodes that are in same level of this one, but 616 is not selected and not visible in menu. Any idea?

Bye,

Salvatore

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

36 542 Users on board!

Forums menu