Menu/Navigation UL Active State

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lukrecija
New Member
New Member
Posts: 4
Joined: Tue May 26, 2009 6:30 am

Menu/Navigation UL Active State

Post 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!
viebig

Re: Menu/Navigation UL Active State

Post by viebig »

why you need this?

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

Return to “Modules/Add-Ons”