WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: joycesf on October 06, 2010, 09:49:12 AM

Title: main menu + sub menu
Post by: joycesf on October 06, 2010, 09:49:12 AM
Hi Guys... I need to know how this done... you can see it on the top right sidebar.

main menu and the submenu

http://scholarscanada.com/adults/general-public-seniors/

http://www.itoklantenservicecentrum.nl/wb/pages/actueel.php

thanks in advance

Joyce :)
Title: Re: main menu + sub menu
Post by: joycesf on October 06, 2010, 10:42:01 PM
pretty please :)... anyone direct me to the solution?  argos or anyone?... thanks :)
Title: Re: main menu + sub menu
Post by: kweitzel on October 07, 2010, 07:01:49 AM
Take a look at the template AllCSS (with drop down) ... it already has this effect.

cheers

Klaus
Title: Re: main menu + sub menu
Post by: PurpleEdge on October 07, 2010, 08:23:14 AM
I think there is an add-in available for Superfish menus available at AMAST - I can't remember if it is a module, or something else?

This looks like a Superfish menu?

Edit: there is a discussion of it here...

https://forum.WebsiteBaker.org/index.php/topic,18520.0.html
Title: Re: main menu + sub menu
Post by: Argos on October 07, 2010, 07:43:42 PM
There are several options to create submenu: multiple showmenus, droplets (showchildren, sitemap, etc), snippets, modules. On the itoklantenservicent rum.nl site I used this snippet:

Code: [Select]
<?php 
// Submenu region, only shown when submenu&#39;s are available
ob_start();
show_menu2(0SM2_ROOT+1SM2_CURR+2SM2_ALL|SM2_CURRTREE);
$childmenu=ob_get_contents();
ob_end_clean();
if (
$childmenu!="") {
?>


<div id="sidemenu">
<?php show_menu2(0SM2_ROOTSM2_MAXSM2_CRUMB|SM2_CURRTREE,&#39;<h2>[menu_title]</h2>&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,false,false); ?>
<?php show_menu2(0,SM2_ROOT+1,SM2_CURR+2,SM2_ALL|SM2_CURRTREE); ?>  
</div>
<?php ?>

Title: Re: main menu + sub menu
Post by: joycesf on October 08, 2010, 08:21:23 PM
Thank you guys... and Argo... that's the one I am looking for... it works beautifully, thanks :)