WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Boudi on November 25, 2010, 01:50:56 PM

Title: SM2: Submenu only visible after clicking topmenu: HOW??
Post by: Boudi on November 25, 2010, 01:50:56 PM
Ok..ok...I feel dumb. I checked the forum, I check the documentation but no way I came up with an answer so here's the deal:

I've got a horizontal SM2 menu:

Code: [Select]


<?php show_menu2(1SM2_ROOTSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse, &#39;<ul id="header_menu" class="menu">&#39;); ?>



When hovering this menu the submenu appears. My client wants the submenu only to appear after clicking the topmenu.

No doubt that there is a simple answer but I couldn't find it.

Solution would be belpfull. :)

Boudi

Title: Re: SM2: Submenu only visible after clicking topmenu: HOW??
Post by: crnogorac081 on November 25, 2010, 02:56:32 PM
Hi mate,

take a look at this tutorial:

http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html

cheers

Edit:
there is even more simple solution for this if it is not dropdown menu, for top menu, you use       show_menu2(0,SM2_ROOT, SM2_CURR ......)    and then where you want seccond level to appear, show_menu2(0,SM2_ROOT+1, SM2_CURR  or sm_all for all levels ......)
Title: Re: SM2: Submenu only visible after clicking topmenu: HOW??
Post by: Boudi on November 25, 2010, 03:21:47 PM
yo!

Thnx for responding. The website is almost live so I simply don't have the time for testing new jquery things out.
The only thing for now is editing the SM2 so that the submenu's are only visible after clicking the topmenu.

Your solution though ends up in only showing the toplevel and/or 1 level deep but still the submenu appears on hover.

Boudi
Title: Re: SM2: Submenu only visible after clicking topmenu: HOW??
Post by: crnogorac081 on November 25, 2010, 03:26:36 PM
Hi mate, send me the link for site on pm, so maybe I can quick take a look for make a fast solution with JQ