Menu

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
ccurle

Menu

Post by ccurle »

I have looked at the menu help and it is very confusing.

Here is what I need.

I have a home page with links

link1
link2
link3
link3.1
link3.2

What I want is for it to not show the children 3.1, 3.2 etc.

What I also want is if you go to link 3

The menu only shows:
Link3
link 3.1
link3.2

How would I do this?
User avatar
Deblus
Forum Members
Forum Members
Posts: 105
Joined: Fri Jun 22, 2007 8:52 am

Re: Menu

Post by Deblus »

you turn these on and off in content / pages

then select a tick to show active page or an x to turn off and hide a page

reordering is by moving up and down with the arrows
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

Re: Menu

Post by stopsatgreen »

There are two ways you can do this:

1. Different Templates

On the home page, use a command like this:

{menu number_of_levels="1"}

Create a new template for 'link3' pages, and use this instead:

{menu start_element="3" show_root_siblings="1"}

You'll probably end up making a lot of templates.

2. CSS

If you're using a list-based menu, hide all the children by putting this in your stylesheet:

li ul { display: none; }

To show children of a selected element, put this:

li.activeparent ul { display: block; }

You may have to play around with these a little, but option 2 is your best bet.
Locked

Return to “CMSMS Core”