Page 1 of 1

Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 2:39 pm
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 |
|                                          |                      |
|                                          |                      |
|                                          |                      |
------------------------------------------------------

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 5:31 pm
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...

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 6:18 pm
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.

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 6:19 pm
by Dr.CSS
Uh wouldn't that make it rather redundant?...

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 6:24 pm
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.

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 6:27 pm
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...

Re: Hide 2nd level menu from other pages

Posted: Wed Mar 25, 2009 6:32 pm
by MoonCore
Thank you I will have a go at it.