WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
peppelorum:
Added two short snippets so that the root items gets a class of their own.
[gelöscht durch Administrator]
travisfisher:
What is the best approach for a site that has the need for the default menu CSS (menu-top, etc.) for multiple menus (1,2,3)?
kweitzel:
wrap the menus in different DIVs ... for design check out css.maxdesign.com.a u they have listamatic and listamatic2 (1 for simple lists and 2 for nested lists).
cheers
Klaus
succhi:
You can also add your own 'id' to the first element without having to wrap. e.g. <ul id="topbar">... and another could be <ul id="sidebar">...
Stuart.
brofield:
--- Quote from: peppelorum on July 03, 2006, 10:17:53 AM ---Added two short snippets so that the root items gets a class of their own.
--- End quote ---
You don't need this change. You can do this using the original show_menu2. Try supplying the SM2_NUMCLASS flag and then root items will have the menu-0 class. Or without using the SM2_NUMCLASS flag, you add the menu level in the format string manually. For example, something like "<li class='menu-[level] [class]'>". Again root items with have the menu-0 class.
B
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version