Page 1 of 1

[solved] Menu display wants to show too many levels?

Posted: Tue Aug 14, 2007 7:02 pm
by msboyd
Hi all --

I've tried a number of menus and various collapse/start_level options for my right-hand navigation and it seems that no matter what I can only display either my top level pages or every page on the site. 

I figured it would be a simple case of using {menu template='simple_navigation.tpl' collapse='2' start_level='1'} but that showed all levels, not just the two I expected.

I also tried menu_icon_expand - when expanded, this is exactly what I need -- only without the 'expand' links (unless those can somehow be indented under each parent section link).

I am currently using this:
{cms_module module='menumanager' collapse='2' start_level='2'}

which is giving me much more than I want, but at least it's indented (screenshot here):

Image

I essentially want to see 'Animal Bio' and its children (Cardian Electrophysiology, Clinical Hematology, etc.) listed, but not theirs - I want all the sub-pages for Cardiac Electrophysiology, for example, to not appear here.

Any ideas?  I've done a lot of tinkering with the 'collapse' numbers, but it seems to be all or nothing for some reason.

Thanks!

Re: Menu display wants to show too many levels?

Posted: Tue Aug 14, 2007 7:39 pm
by Caspar
msboyd wrote: I am currently using this:
{cms_module module='menumanager' collapse='2' start_level='2'}
Hi,
make it look like this:

Code: Select all

{cms_module module='menumanager' collapse='2' start_level='2' number_of_levels='2'}

Re: Menu display wants to show too many levels?

Posted: Tue Aug 14, 2007 7:47 pm
by msboyd
I tried that already, actually -- it only displays one level when I do that.  Thanks, though!

Re: Menu display wants to show too many levels?

Posted: Tue Aug 14, 2007 7:49 pm
by Caspar
How about:

Code: Select all

{menu collapse='1' start_level='2' number_of_levels='2'}
EDIT: collapse='2' doesn't seem to be a valid parameter, does it?

Re: Menu display wants to show too many levels?

Posted: Tue Aug 14, 2007 8:13 pm
by msboyd
Duh!  You are correct!

Here's what solved it:

{cms_module module='menumanager' start_level='1' number_of_levels='3'}