I am trying to work this navigation for quite some time. The only thing I can't figure out is the active state of the ul (highlighted in red). Then it's not active I want the "sub" class to show; however when it's active - "sub_active". I am new to this cms and having hard time understanding the repeat string line...
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{if $node->depth == 2}
{else}
{repeat string='' times=$node->depth-$node->prevdepth}
{/if}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
The menu should look like:
About us
About Sub One
About Sub Two
About Sub Three
Products
Products Sub One
Products Sub Two
Products Sub Three
Please, I need your help!
Menu/Navigation UL Active State
-
viebig
Re: Menu/Navigation UL Active State
why you need this?
is there an online example.. maybe you can do it in a simple manner
is there an online example.. maybe you can do it in a simple manner

