• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to design the children in navigator
PostPosted: Sat Feb 17, 2018 12:44 pm 
Offline
New Member
New Member

Joined: Fri Sep 23, 2016 10:02 am
Posts: 6
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!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to design the children in navigator
PostPosted: Sun Feb 18, 2018 2:58 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 314
Location: Victoria, BC
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:
Code:
{if $depth==0}
  <ul class="menu accordion medium-dropdown">
{else}
  <ul class="menu">
{/if}


You can also just use css to target specific levels, like
Code:
#mymenu ul ul

will just target levels below the first.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: How to design the children in navigator
PostPosted: Sun Feb 18, 2018 1:54 pm 
Offline
New Member
New Member

Joined: Fri Sep 23, 2016 10:02 am
Posts: 6
Thanx for your reply and explanation. Exactly what i needed, it helped a lot. Thanx again.

Peter


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting