Page 1 of 1

Why doesn't this work?

Posted: Thu Oct 25, 2007 4:01 pm
by R0BINH00D
I call a menu on the same page two ways:

{menu template="children" start_page="Design"}

{menu template="children" start_page="Build"}

The menu temlpate is like this:

{assign var="depth" value=$node->depth}

{foreach from=$nodelist item=node}
{if  $node->depth == ($depth + 1)}
url}">{$node->menutext}
{/if}
{/foreach}


If I call it only once - it works perfectly - but when i display twice strange things happen and it shows the same children on both menu - and drops one of the last children off.

see: http://www.opeus.org/

it's called on the left  and right

Re: Why doesn't this work?

Posted: Thu Oct 25, 2007 5:23 pm
by Dr.CSS
How are your pages in the Content > Pages laid out?...

Are the 2 pages in the same level?...

The menu tag takes the alias for the page and most times, unless you do it, they are lower case...