the site is http://www.nstra.webeasykennels.com
I want the sub menu (top) to display the children (if any, if not be blank, except for deepest level) of the current page only. or to display the deepest level (3) if there.
I achieved it kinda by starting at level 3 when i added the menu smarty, but I miss the children of level 1 and 2.
I am using this for the subnav now:
Code: Select all
{if $count > 0}
<ul id="submenu" class="subsf-menu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li><a class="subcurrent" {elseif $node->current == true}
<li><a class="subcurrent" {elseif $node->haschildren == true}
<li><a {elseif $node->type == 'sectionheader'}
<li>{$node->menutext} {elseif $node->type == 'separator'}
<li> <br />{else}
<li><a {/if} {if $node->type != 'sectionheader' and $node->type != 'separator'}href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{else}title="{$node->menutext}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}><dfn>{$node->hierarchy}: </dfn><span>{$node->menutext}</span></a>{/if}{/foreach}{repeat string="</li></ul>" times=$node->depth-2}</li></ul>
{/if}
I am runnind cmsms v. 1.10.2
Thanks in advance.