Getting menu children to print on a page instead of in the navigation [solved]

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
laits
Forum Members
Forum Members
Posts: 50
Joined: Thu Sep 04, 2008 11:21 pm

Getting menu children to print on a page instead of in the navigation [solved]

Post by laits »

OK, What I'm trying to do:-

I want the links that appear as children of a menu item, i.e. 7.1, 7.2, 7.3 etc to appear on a page as a dynamic index rather than in the menu.

Basically my section called case studies could potentially have 30+ sub pages, far too many to have in a dropdown, therefore, would like them to appear on the parent page as an index to all the case studies.

I've looked in the menu manager to see if there was snippet that i could put into a new template, but it's not clear to me.

Any help greatly appricieated.

Rich
Last edited by laits on Sat Nov 27, 2010 11:51 am, edited 1 time in total.
laits
Forum Members
Forum Members
Posts: 50
Joined: Thu Sep 04, 2008 11:21 pm

Re: Getting menu children to print on a page instead of in the navigation

Post by laits »

....so i've worked out that I can stick a new menumanager template into the page, but does anybody know how to just show children, or how to seperate out children vs everything else. I only have children in this section!

something like

if $node->child ==true
if $node->child ==false

that way i could set .hidden{display:none} and .index button to a nice shiney button :-)

that's the strategy, I'm unsure of the syntax, or whether there is even a call for "child"

Anybody out there help?
panthus

Re: Getting menu children to print on a page instead of in the navigation

Post by panthus »

You can use two menu calls, one for your main menu and one directly on the page. Then use start_level='' and number_of_levels='' parameters to limit which menu items are shown.

for the main menu:

Code: Select all

{menu start_level='1' number_of_levels='1'}
on the page:

Code: Select all

{menu start_level='2'}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Getting menu children to print on a page instead of in the navigation

Post by Dr.CSS »

Do it exactly like it's done in the default template...

http://multiintech.com/defaultcontent/i ... e=top_left
Post Reply

Return to “CMSMS Core”