| Wednesday 07 December 2005 7:10:47 pm 
                                                                 Here is how i use 'treemenu' out of pagelayout.tpl (thus without $module_result.path) : <b>The concept is to recreate the same $module_result.path array available in pagelayout.tpl.</b> 
{def $module_path=array()}
      {foreach $node.path_array|remove(0,1) as $element}
      {def $thisnode=fetch('content', 'node', hash('node_id',$element))}
      {def $thisArray=hash('text', $thisnode.name, 'url', concat('/content/view/full/',$thisnode.node_id), 'url_alias', $thisnode.url_alias, 'node_id', $thisnode.node_id)}
      {set module_path=$module_path|append($thisArray)}
      {undef $thisnode $thisArray}
      {/foreach}
Then you just have to go on with the classical function synthax : 
{let docs=treemenu($module_path,(...))}
</code> EZP is Great
                                                                 |