Page 1 of 1

Another basic menu manager question

Posted: Thu Dec 06, 2007 8:34 pm
by olavt
I am looking for some information about the syntax used in menu templates. It is obviously richer/more complex that what is explained in the help for menu manager. What I am actually trying to do is to limit the number of levels to two or three in this menu:

{* CSS classes used in this template:
#menuwrapper - The id for the that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the
.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}

{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}

{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
current == true}
haschildren == true}
url}">{$node->menutext}{/foreach}

{repeat string="" times=$node->depth-1}


{/if}


I would also like to get rid of the hieararchy numbers when I use the default menu (using the {menu} tag)

Re: Another basic menu manager question

Posted: Thu Dec 06, 2007 8:36 pm
by calguy1000
well... the default menumanager templates are a bit obtuse.... why not
modify the template so it doesn't open a from within a

Then.... once youve got that working

put an if statement around things so that if the depth is greater than what your interested in, do nothing.

Re: Another basic menu manager question

Posted: Sat Dec 08, 2007 12:54 pm
by Pierre M.
Hello,
olavt wrote: I would also like to get rid of the hieararchy numbers when I use the default menu (using the {menu} tag)
this is already answered several times in these forums : dfn{display:none;} in the CSS.

Pierre M.