WebsiteBaker Support (2.8.x) > Templates, Menus & Design
instant submenu dropdown
(1/1)
snark:
http://www.chainsoul.com/wb/pages/test3.php
I made a start for a new template with the menu from the book template
http://WebsiteBaker.at/wb-templates/
on this template the submenu folds out on hover, with mine it doesn't, you have to click the item first to get the foldoutsubmenu and I can't figure out why
I have attached the index, info and the stylesheet files
If anyone can tell me where/what to change it would be great
[gelöscht durch Administrator]
BlackTiger:
Hi snark,
--- Quote from: snark on June 18, 2009, 06:45:48 PM ---http://www.chainsoul.com/wb/pages/test3.php
on this template the submenu folds out on hover, with mine it doesn't, you have to click the item first to get the foldoutsubmenu and I can't figure out why
--- End quote ---
if I hover over test3 on this page I get a dropdown with two submenus test 3a and test 3b - so what's not working?
regards
Michael
snark:
yes, but you do not get a dropdown on item 1, you have to click item 1 first, I think it is due to the way I used the showmenu2 options ROOT+1, ALL, TRIM..
anyway I, tried all the options and just made another menu
BlackTiger:
Hi snark,
now I know what you mean - you don't get all submenus becaus of the option SM2_TRIM in line 99 of your index.php:
--- Code: --- <?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_TRIM, '<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="header_menu" class="menu">');
--- End code ---
use SM2_ALL instead and it should work as intended (I added SM2_PRETTY for better reading of the html-output):
--- Code: --- <?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_PRETTY, '<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>', "</li>", '<ul class="ullev[level]">', "</ul>", true, '<ul id="header_menu" class="menu">');
--- End code ---
regards
Michael
snark:
okay, thanks
Navigation
[0] Message Index
Go to full version