WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: davidwaterman on April 04, 2011, 05:17:58 PM

Title: show_menu2
Post by: davidwaterman on April 04, 2011, 05:17:58 PM
I'm sorry if this has been asked many times before. I'm using Show_menu2 with drop menus & i'm trying to get so that if there is a drop down menu that the top link isn't clickable.

Home ----- (link)
About ----- (no link)
---------- The Company ----- (link)
---------- Staff ----- (link)
---------- Offices ----- (link)
Projects ----- (link)
People we Help ----- (no link)
---------- Private ----- (link)
---------- Social ----- (link)
Contact ----- (link)

I've used this code from my previous church website

<?php
show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, '<li class="[class]">[if (level=1){[menu_title]}else{[a][menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">');
?>

I'm will to give someone €20 if they are willing to help solve this one.

Thanks

Rich
Title: Re: show_menu2
Post by: DarkViper on April 05, 2011, 06:19:13 AM
Quote from: davidwaterman on April 04, 2011, 05:17:58 PM
<?php
show_menu2
(1SM2_ROOTSM2_ALLSM2_ALL'<li class="[class]">[if (level=1){[menu_title]}else{[a][menu_title]</a>}]'"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">');
?>


try this please:
<?php
show_menu2
(1SM2_ROOTSM2_ALLSM2_ALL
    
'<li class="[class]">[if (class==menu-expand){[menu_title]}else{[a][menu_title]</a>}]'
    
'\n</li>'falsefalsefalse
    
'<ul id="header_menu" class="menu">');
?>


Quote from: davidwaterman on April 04, 2011, 05:17:58 PM
I'm will to give someone €20 if they are willing to help solve this one.

If it fulfill your needs, feel free to support the WB project... Donate (http://www.websitebaker2.org/en/community/donate.php?lang=EN)

have a nice day
Werner
Title: Re: show_menu2
Post by: davidwaterman on May 05, 2011, 02:37:09 PM
Thanks Werner. I'll send it tomorrow morning.

Thanks once again.