Hello everyone
I am struggling with the Navigator a bit. What my template needs is to give the 'outer' ul a certain class (nav navbar-nav) and the ul inside it so to say (for the dropdown) another class (dropdown-menu). I understand this is quite trivial and have been searching for an hour in de CMSMS docs but I was unable to find the answer.
Would be great if you could give a hint
I am using CMSMS 2.16 and the 'simple' menu template that came with it.
Thanks!
Navigator, how to give class depending on depth
Re: Navigator, how to give class depending on depth
Code: Select all
{function name=Nav_menu depth=1}{strip}
<ul class="{if $depth==0}nav navbar-nav{else}dropdown-menu{/if}">
{foreach $data as $node}
{* setup classes for the anchor and list item *}
...
Re: Navigator, how to give class depending on depth
Velden, That works! Thanks so much!