Forums / Developer / Sticky navigation / Comment46947

Author Topic

David Jones

Monday 09 October 2006 5:35:55 am

Comment46947

OK, I found some code in the documentation that seems to claim to do what I want however, when I put it in pagelayout.tpl it doesn't output anything.

{def $mainMenu=treemenu( $module_result.path, $module_result.node_id ) }
{foreach $mainMenu as $menu}

{$menu.level} - {$menu.text}<br />
{/foreach}
{undef $mainMenu}

Any idea what I'm missing?