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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • How do you make the parent menu unclickable? <SOLVED>
  • Print
Pages: 1 [2]   Go Down

Author Topic: How do you make the parent menu unclickable? <SOLVED>  (Read 33248 times)

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: How do you make the parent menu unclickable? <SOLVED>
« Reply #25 on: December 03, 2013, 06:41:01 PM »
Quote from: Stefek on May 25, 2010, 10:39:33 PM
Quote from: tsb on May 25, 2010, 08:49:13 PM
Stefek, just getting errors, if I can get this to work, I definitely will put some money towards your way.

Hello,
if you really want to spent some bucks, then I always love to get PHP Books in exchange for my time ;-)
Amazon makes it possible.

But first, let's try to get the menu to work.

The following code should work properly:
Code: [Select]
<?php    
    show_menu2
(
        
0,SM2_ROOT, SM2_ALL, SM2_ALL, 
        
'[li]
        [if(level != 0 || id == 777){ 
        <a href="[url]">[menu_title]</a>
        }                     
        else{
        <a>[menu_title]</a>
        }]'
, 
        
'</li>', 
        
false, 
        
false, 
        
false, 
        
'<ul id="header_menu" class="menu">'
    
);         
?>

Please try it, and let me know how it works.

You will need to replace 777 by the pageID of 'home'.

Kind regards,
Stefek



Hi

I would like to achieve this also and was wondering if it is possible to add more id's to level !=0 than just home page. Or at least all id's clickable, but one!

Thank you

R.
« Last Edit: December 03, 2013, 06:45:10 PM by Roych »
Logged

  • Print
Pages: 1 [2]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • How do you make the parent menu unclickable? <SOLVED>
 

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