Menu Manager - Help!

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
liquid
Forum Members
Forum Members
Posts: 59
Joined: Sun Aug 07, 2005 10:20 pm

Menu Manager - Help!

Post by liquid »

I'm using beta3 (looks fantastic, btw) and I'm running into a bit of a problem with the Menu Manager.

Here's the hierarchy of the site

- Home
- About
- Newsroom
-- News Releases
-- Media Coverage
etc.

I'd like a menu that would show just the children of the parent element, but to a point. So, what I need is a menu that shows if you're in the Newsroom section, just the two children in that section. I've modified the list_children code from the Wiki (thanks!) but the problem is that when you're on the News Releases page, it doesn't work. How do I tell it to grab the menu based on the current top-level node?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager - Help!

Post by Dr.CSS »

Have you gone to Modules>Menu Manager>Help ,the word help on the right hand side, should have the info you need on the parameters to set for what you want.
Utter
Forum Members
Forum Members
Posts: 41
Joined: Sun Mar 06, 2005 11:39 pm

Re: Menu Manager - Help!

Post by Utter »

So if 'Newsroom' is page 3.0 but you only want to show children then use this in the template for that section

{menu start_element="3.1" template="yourtemplate" show_root_siblings="1"}

That'll put just the children of 3.0 into the menu
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager - Help!

Post by Dr.CSS »

Yes and no other ones no matter what page you are on, if you want to display just the children for each section such as 3.0 Newsroom, 4.0 Products, 5.0 Gallery, 6.0 Pricing, etc. any section in the top menu that is active the sub menu is composed of it's children.

Then your menu tag will be...

{menu start_level="2" collapse="1"}

start_level="2"    This option will have the menu only display items starting a the given level, your second menu will show items based on what is selected in the first menu.

collapse="1"  Turn on (set to 1) to have the menu hide items not related to the current selected page.

Like this http://www.multiintech.com/cmsite/index ... 3-col  only the things under Rounded are in the Sub Menu.
liquid
Forum Members
Forum Members
Posts: 59
Joined: Sun Aug 07, 2005 10:20 pm

Re: Menu Manager - Help!

Post by liquid »

Thanks! The start_level variable was exactly what I needed!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager - Help!

Post by Dr.CSS »

Your welcome

Just trying to help out when I can.
Post Reply

Return to “CMSMS Core”