Forums / Developer / treemenu
Salvatore Guarino
Thursday 17 November 2005 8:37:37 am
This is code for my default treemenu:
treemenu( $module_result.path, node_id [, class_filter ] [, depth_skip ] [, max_level ] )
It's possible to specify the path of another node? (not the current)
What I have to write instead "$module_result.path"?
Bye,
Salvatore
Ł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
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?