Page 1 of 1
menu left vertical + top dropdown [SOLVED]
Posted: Wed Mar 21, 2007 6:43 am
by flade
I'm wondering how to put together left vertical menu and top drop down menu.
I was just to start drawing top menu but I realized It's not such a good idea. I want top menu to extend with pages that i create.
I attached what i want to do.
regards,
[gelöscht durch Administrator]
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 7:22 am
by RonnyK
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 8:08 am
by flade
*** EDIT
This post you mentioned. It shows how to put left and right side to work. I did some modifications
This is my top tag:
{menu template='cssmenu.tpl' collapse='1' items='link8' number_of_levels='2'}
But there is no drop down menu. I did conect css vertical stylesheet to my template.
If I use without items='link8' all itemes are displayed and drop down works.
any ideas.
regards,
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 8:40 am
by RonnyK
Flade,
the styling for the default top-menu combined with the vertical-menu only shows on level, you should check the CSS for the top-menu as well and combine this in the combination.
Ronny
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 1:34 pm
by flade
Right,
I got cms menu stylesheet for top horizontal menu with drop down. Thing is when I enable all menu items. Top menu show same items as left menu.
When I put start_element like this:
Code: Select all
{menu template='cssmenu.tpl' start_element="3" }
It shows only menu item 3 with subitems. But I want to display horizontaly more than just 1 item.
Then I tried with this:
Code: Select all
{menu template='cssmenu.tpl' collapse='1' items='link8' number_of_levels='2'}
It shows only link8 with no subitems.
I don't think this has anything to do with style sheet, as cms_horizontal stylesheet is used only for this top menu. I edited cssmenu.tpl and cms_horizontal stylesheet to use same classes and ids.
any clues ?
Sorry if this was discussed before but right now I can't find the right post.
regards,
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 1:37 pm
by RonnyK
What if you remove the "collapse='1'" in the calling of the vertical menu.
Ronny
Re: menu left vertical + top dropdown
Posted: Wed Mar 21, 2007 2:24 pm
by flade
No good, it's without subitems.
Code: Select all
{menu template='cssmenu.tpl' items='link8, link9' number_of_levels='2'}
confused
Re: menu left vertical + top dropdown
Posted: Thu Mar 22, 2007 2:37 am
by Dr.CSS
When you use the "items=" option in the menu call it will only show the items in the call eg. link8, link9 if you need to start at a certain level and only show it and it's siblings try the start_element="1.2", 1.2 being the number before the page name in Content » Pages....
# (optional) start_page="home" - Starts the menu displaying at the given start_page and showing that element and it's children only. Takes a page alias.
# (optional) start_element="1.2" - Starts the menu displaying at the given start_element and showing that element and it's children only. Takes a hierarchy position (e.g. 5.1.2).
# (optional) start_level="2" - This option will have the menu only display items starting a the given level. An easy example would be if you had one menu on the page with number_of_levels='1'. Then as a second menu, you have start_level='2'. Now, your second menu will show items based on what is selected in the first menu.
# (optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.
# (optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.
# (optional) items="contact,home" - Use this item to select a list of pages that this menu should display. The value should be a list of page aliases separated with commas.
# (optional) collapse="1" - Turn on (set to 1) to have the menu hide items not related to the current selected page.
Re: menu left vertical + top dropdown [SOLVED]
Posted: Thu Mar 22, 2007 1:03 pm
by flade
Silly me...
I spent 3 days looking at Help of MenuManager and It just not crosse my mind that I could use more than one menu tag.
Tnx for Help.
This one is sloved