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)
Another basic menu manager question
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Another basic menu manager question
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Another basic menu manager question
Hello,
Pierre M.
this is already answered several times in these forums : dfn{display:none;} in the CSS.olavt wrote: I would also like to get rid of the hieararchy numbers when I use the default menu (using the {menu} tag)
Pierre M.