Page 1 of 1

Multiple (top/left/etc) menus on the page

Posted: Thu Oct 18, 2007 9:59 pm
by Augustas
Hello,

I was wondering what is the best way to implement >2 different menus.
For example, one menu at the top of the page (horizontal) and another menu on the left side of the page (vertical).
Both contain different navigation options.

In CMSMS Admin: CONTENT -> PAGES I am able to organize only one menu.

What would be best solution for making the second menu?
- To create a User Defined Tag
- To create a new Module
- or something else?

Thanks,
Augustas

Re: Multiple (top/left/etc) menus on the page

Posted: Fri Oct 19, 2007 5:01 am
by RonnyK
Augustas,

If you check "Top simple navigation + left subnavigation + 1 column" you'll see that that template calls menu twice, with different parameters.

I personally like to do all through the use of Content with different {menu}-callings, because that way I have all pages at the same place, in CONTENT, and am able to push pages where I want dynamically.

You can call menu, check the help of menumanager, with different parameters, f.e.:
(optional) includeprefix="" - Include only those items who's page alias matches one of the specified (comma separated) prefixes. This parameter cannot be combined with the excludeprefix parameter.
(optional) excludeprefix="" - Exclude all items (and their children) who's page alias matches one of the specified (comma separated) prefixes. This parameter must not be used in conjunction with the includeprefix parameter.
This will give you the option to show specific pages at specific placesm while excluding them at other positions. With the different calling of NEWS in a different position, inside a different container, you can also style them differently.

IF you check http://test.krijt.eu , I called {menu} 4 times there: hor, hor2, sidebar and footer.

Ronny

Re: Multiple (top/left/etc) menus on the page

Posted: Fri Oct 19, 2007 2:10 pm
by Augustas
Dear Ronny, thanks for the tip! That sounds very logical and comfortable.
Augustas