Page 1 of 1

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

Posted: Thu Nov 25, 2010 10:40 pm
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

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

Posted: Thu Nov 25, 2010 11:53 pm
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?

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

Posted: Fri Nov 26, 2010 3:19 am
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'}

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

Posted: Sat Nov 27, 2010 4:13 am
by Dr.CSS
Do it exactly like it's done in the default template...

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