Why doesn't this work?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
R0BINH00D
Forum Members
Forum Members
Posts: 19
Joined: Wed Oct 24, 2007 4:32 pm

Why doesn't this work?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Why doesn't this work?

Post 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...
Post Reply

Return to “Layout and Design (CSS & HTML)”