Hi guys,
Is it possible to design the children of a navigator item? I already made a new Navigator design template and managed easily to style the main navigator items. But how about the childeren of an item? Is there a template for them?
I use CMSMS 2.2.5, navigator version = "1.0.8".
Thanx!
How to design the children in navigator
Re: How to design the children in navigator
You don't need separate templates for the children; Navigator templates are recursive. If you look at the default templates, you'll see that it cycles through the same sequence for parents and children.
Most of the sample templates add a class for the level, like .menudepth0, .menudepth1, etc., so you can target those in your stylesheet. You can add/calculate these yourself by using the $depth variable. For example, on my Foundation menu templates I usually have something like this in my Navigator templates:
You can also just use css to target specific levels, like
will just target levels below the first.
Most of the sample templates add a class for the level, like .menudepth0, .menudepth1, etc., so you can target those in your stylesheet. You can add/calculate these yourself by using the $depth variable. For example, on my Foundation menu templates I usually have something like this in my Navigator templates:
Code: Select all
{if $depth==0}
<ul class="menu accordion medium-dropdown">
{else}
<ul class="menu">
{/if}
Code: Select all
#mymenu ul ul
Not getting the answer you need? CMSMS support options
Re: How to design the children in navigator
Thanx for your reply and explanation. Exactly what i needed, it helped a lot. Thanx again.
Peter
Peter