WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • instant submenu dropdown
  • Print
Pages: [1]   Go Down

Author Topic: instant submenu dropdown  (Read 4488 times)

snark

  • Guest
instant submenu dropdown
« on: June 18, 2009, 06:45:48 PM »
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]
« Last Edit: June 18, 2009, 06:48:50 PM by snark »
Logged

BlackTiger

  • Guest
Re: instant submenu dropdown
« Reply #1 on: June 21, 2009, 11:06:37 AM »
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

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
Logged

snark

  • Guest
Re: instant submenu dropdown
« Reply #2 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


Logged

BlackTiger

  • Guest
Re: instant submenu dropdown
« Reply #3 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(0, SM2_ROOT, SM2_ALL, SM2_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(0, SM2_ROOT, SM2_ALL, SM2_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
Logged

snark

  • Guest
Re: instant submenu dropdown
« Reply #4 on: June 21, 2009, 12:07:31 PM »
okay, thanks
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • instant submenu dropdown
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2