Share » Forums » Developer » Sticky navigation

Sticky navigation

Sticky navigation

Monday 02 October 2006 2:32:33 am - 3 replies

Author Message

Marco Zinn

Monday 02 October 2006 9:12:18 am

Eh... yes, it makes sense.
I guess, $pagelayout_node contains the current node, so you will only display the current node's children with your code.
You should probably use a hard-coded node (Node 2, for example), if you want to have a "static" menu.

But: Why don't you use the provided menus or the treemenu code/template?

Marco
http://www.hyperroad-design.com

David Jones

Monday 09 October 2006 4:55:47 am

Thanks Marco,

But could you be a little more spcific?

How could I use the Tree code template?

Thanks

David Jones

Monday 09 October 2006 5:35:55 am

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?

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

36 542 Users on board!

Forums menu