WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2  (Read 5317 times)

Offline davidwaterman

  • Posts: 9
show_menu2
« 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
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: show_menu2
« Reply #1 on: April 05, 2011, 06:19:13 AM »
Quote from: davidwaterman on April 04, 2011, 05:17:58 PM
Code: [Select]
<?php
show_menu2
(1, SM2_ROOT, SM2_ALL, SM2_ALL, &#39;<li class="[class]">[if (level=1){[menu_title]}else{[a][menu_title]</a>}]&#39;, "\n</li>", false, false, false, &#39;<ul id="header_menu" class="menu">&#39;);
?>

try this please:
Code: [Select]
<?php
show_menu2
(1, SM2_ROOT, SM2_ALL, SM2_ALL, 
    &
#39;<li class="[class]">[if (class==menu-expand){[menu_title]}else{[a][menu_title]</a>}]&#39;, 
    
&#39;\n</li>&#39;, false, false, false, 
    
&#39;<ul id="header_menu" class="menu">&#39;);
?>

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
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline davidwaterman

  • Posts: 9
Re: show_menu2
« Reply #2 on: May 05, 2011, 02:37:09 PM »
Thanks Werner. I'll send it tomorrow morning.

Thanks once again.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2