show_menu2

davidwaterman

Thanks Werner. I'll send it tomorrow morning.

Thanks once again.

DarkViper

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

have a nice day
Werner
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

davidwaterman

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