Page 1 of 1

Menu/Navigation UL Active State

Posted: Tue May 26, 2009 9:20 am
by lukrecija
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!

Re: Menu/Navigation UL Active State

Posted: Sun Jun 21, 2009 6:01 am
by viebig
why you need this?

is there an online example.. maybe you can do it in a simple manner