WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: snark on June 18, 2009, 06:45:48 PM

Title: instant submenu dropdown
Post by: snark on June 18, 2009, 06:45:48 PM
http://www.chainsoul.com/wb/pages/test3.php (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/ (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]
Title: Re: instant submenu dropdown
Post by: BlackTiger on June 21, 2009, 11:06:37 AM
Hi snark,

http://www.chainsoul.com/wb/pages/test3.php (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

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
Title: Re: instant submenu dropdown
Post by: snark on June 21, 2009, 11:16:32 AM
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


Title: Re: instant submenu dropdown
Post by: BlackTiger on June 21, 2009, 11:37:50 AM
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: [Select]
           <?php show_menu2(0SM2_ROOTSM2_ALLSM2_TRIM, &#39;<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>&#39;, "</li>", &#39;<ul class="ullev[level]">&#39;, "</ul>", true, &#39;<ul id="header_menu" class="menu">&#39;);

use SM2_ALL instead and it should work as intended (I added SM2_PRETTY for better reading of the html-output):

Code: [Select]
           <?php show_menu2(0SM2_ROOTSM2_ALLSM2_ALL|SM2_PRETTY, &#39;<li><a href="[url]" class="[class] navlev[level]">[menu_title]</a>&#39;, "</li>", &#39;<ul class="ullev[level]">&#39;, "</ul>", true, &#39;<ul id="header_menu" class="menu">&#39;);

regards
Michael
Title: Re: instant submenu dropdown
Post by: snark on June 21, 2009, 12:07:31 PM
okay, thanks