Page 1 of 1

simplified menu

Posted: Thu Apr 26, 2007 2:51 am
by admsh
i just started working with CMSMS two days ago and already i have a website running with a complete custom design. this is really an amazing piece of software.

this might be a silly question with a very simple solution - i just couldn't find anything on this anywhere.

i want to create a menu at the bottom of the page that only shows top-level pages (parent pages) but not sub categories from any level. i've been trying to edit the template in the menu manager, but frankly i have no idea what to do with that code.

any help will be greatly appreciated  ;D

Re: simplified menu

Posted: Thu Apr 26, 2007 5:19 am
by alby
admsh wrote: i want to create a menu at the bottom of the page that only shows top-level pages (parent pages) but not sub categories from any level. i've been trying to edit the template in the menu manager, but frankly i have no idea what to do with that code.
Depend of your hierarchy.
Try with param: number_of_levels="1"
Look to here for other info

Alby

Re: simplified menu

Posted: Thu Apr 26, 2007 5:42 am
by javathunderbird
try this:

{menu number_of_levels = '1' template='your_bottom_menu_template.tpl'}

Parameters

    * (optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.

With my best,
Jim

Re: simplified menu

Posted: Thu Apr 26, 2007 2:00 pm
by admsh
this is fantastic! thank you so much...
can one also only show a specific level? say only level 3 but not 1 or 2?  :o

Re: simplified menu

Posted: Thu Apr 26, 2007 3:10 pm
by Pierre M.
Hello admsh,

I think there is a startlevel or so attribute too. (or collapse or so, as for {sitemap} ?).
Look for doc in the menu manager in the admin. It explains the options/attributes of {menu}
Have fun !

Pierre M.