Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:14:22 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155543 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: show_menu2  (Read 529 times)
davidwaterman

Offline Offline

Posts: 8


« on: April 04, 2011, 04: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
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #1 on: April 05, 2011, 05:19:13 AM »

Code:
<?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:
Code:
<?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">');
?>

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
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
davidwaterman

Offline Offline

Posts: 8


« Reply #2 on: May 05, 2011, 01:37:09 PM »

Thanks Werner. I'll send it tomorrow morning.

Thanks once again.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!