Hide 2nd level menu from other pages

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.
Post Reply
MoonCore
New Member
New Member
Posts: 7
Joined: Wed Mar 25, 2009 2:20 pm

Hide 2nd level menu from other pages

Post by MoonCore »

I'm trying to hide a 2nd level menu from all pages other than the page which actually has subpages.

The website I'm working on currently has three pages so far. The third page has three subpages.

The menu is located on the top while the 2nd level of the menu is shown in a collumn to the right of the page.

So what I want to accomplish is that the 2nd level menu isn't shown on Page 1 and Page 2, just on Page 3.

Now I've tried {menu template='cssmenu.tpl' start_level="2"} which shows the second level perfectly and only on Page 3, however I want the 1st level item for Page 3 to also show but when I add start_element="3" the submenu will show up on all pages.

------------------------------------------------------
| Topnav: Page 1  Page 2  Page 3              |   <- this is the top menu showing only the 1st level menu items
------------------------------------------------------
|                                          | - Page3         |   <- if I add start_element="3" the submenu will be shown on all pages  :(
|                                          |   - Subpage1 |
|    CONTENT                       |   - Subpage2 |
|                                          |   - Subpage3 |
|                                          |                      |
|                                          |                      |
|                                          |                      |
------------------------------------------------------
Last edited by MoonCore on Wed Mar 25, 2009 2:43 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Hide 2nd level menu from other pages

Post by Dr.CSS »

Yes that is the way it works, start_level="2" is for showing the second level of the first level active page, if you just want the name/title of the active page above your second level menu there are ways of pulling it in, it has been discussed in forum before...
MoonCore
New Member
New Member
Posts: 7
Joined: Wed Mar 25, 2009 2:20 pm

Re: Hide 2nd level menu from other pages

Post by MoonCore »

------------------------------------------------------
| Topnav: Page 1  Page 2  Page 3              | 
------------------------------------------------------
|                                          | - Page3         |   <- clickable menu item (cant get this one to show up at all)
|                                          |   - Subpage1 |   <- clickable menu item
|    CONTENT                       |   - Subpage2 |   <- clickable menu item
|                                          |   - Subpage3 |   <- clickable menu item
|                                          |                      |
|                                          |                      |
|                                          |                      |
------------------------------------------------------

Edit: I edited my post to illustrate that the top menuitem should be clickable as well.
Last edited by MoonCore on Wed Mar 25, 2009 6:21 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Hide 2nd level menu from other pages

Post by Dr.CSS »

Uh wouldn't that make it rather redundant?...
MoonCore
New Member
New Member
Posts: 7
Joined: Wed Mar 25, 2009 2:20 pm

Re: Hide 2nd level menu from other pages

Post by MoonCore »

Showing that item in the submenu would show that that's the page which is the active one. I know the top menu would show that as well but since there's a lot of text on that page I would like to make that one 'active' so to speak.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Hide 2nd level menu from other pages

Post by Dr.CSS »

When you pull/put the parent page title in it can be styled to show it as active with out being a clickable link...
MoonCore
New Member
New Member
Posts: 7
Joined: Wed Mar 25, 2009 2:20 pm

Re: Hide 2nd level menu from other pages

Post by MoonCore »

Thank you I will have a go at it.
Last edited by MoonCore on Wed Mar 25, 2009 6:50 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”