WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
show_menu(1, 1, 1, true, '<li>[a][menu_title]</a>','</li>','<ul id="menu_left">','</ul>');
function show_menu2( $aMenu = 0, $aStart = SM2_ROOT, $aMaxLevel = SM2_CURR+1, $aOptions = SM2_TRIM, $aItemOpen = '[li][a][menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '<ul id="menu_left">', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false )
hi,for best performances use show_menu2 : http://code.jellycan.com/show_menu2/in your case it coud be:Code: [Select]function show_menu2( $aMenu = 0, $aStart = SM2_ROOT, $aMaxLevel = SM2_CURR+1, $aOptions = SM2_TRIM, $aItemOpen = '[li][a][menu_title]</a>', $aItemClose = '</li>', $aMenuOpen = '<ul id="menu_left">', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false )Remember this is submenu, so if you have for example this page structure:- Home- Cars- - Mercedes- - BMW- - Audi- Houses- - Small- - Big- - Vilas- Products- Devices-- And much more here-so if you click on Cars, sumenu will show mercedes, bmw, audi, but if you click on Products it will show nothing as there are no child items.. What you may looking for is not a submenu, but multiple menus... take a look at HELP PAGES: http://www.websitebaker2.org/en/help/designer-guide/multiple-menus.phpYou may split your menu in half and show half items in top horisontal menu and other half in side menu. You can see example of multiple menus on WebsiteBaker home page: at the tope there are [ Home, Download, Add-ons, Help, Forum, Organisation] and when you hover on them you can see their submenus and another menu at the bottom: [ News, Legal Notice & Privacy Policy, Bugreport, Security Issues, Archive, Join us, Donate]Also, consider using show_menu2 as it is much advanced than show_menuI hope this helpedcheers
Hi, you can send me on PM your username/pwd for your site and detail explanation which items you want in which menu so I can take a look..cheers