WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: daydreamer on February 03, 2014, 09:00:04 PM

Title: How to make parent menu unclickable?
Post by: daydreamer on February 03, 2014, 09:00:04 PM
Hi,

Is it possible to make a parent menu item un-clickable? but not all parent just one or two.

Thanks
Title: Re: How to make parent menu unclickable?
Post by: Tommy on February 04, 2014, 03:01:51 AM
You could try to replace the link's href value with a `#`.
Title: Re: How to make parent menu unclickable?
Post by: dbs on February 04, 2014, 08:42:54 AM
You could use something like this in position 5:
'<li>[if( PAGE_ID == 22 ){[menu_title]}else{<a href="[url]" class="[class] navlev[level]">[menu_title]</a>}]'
Title: Re: How to make parent menu unclickable?
Post by: DarkViper on February 04, 2014, 01:49:56 PM
Quote from: daydreamer on February 03, 2014, 09:00:04 PM
Is it possible to make a parent menu item un-clickable? but not all parent just one or two.

you can do this with any menu item . ;)
SM2 gives you the possibility to do it

look here to see how it can work. (http://www.websitebaker.org/forum/index.php/topic,19652.msg132369.html#msg132369)
Title: Re: How to make parent menu unclickable?
Post by: Roych on May 15, 2014, 01:20:40 PM
I use this and it works great!

<?php show_menu2(0SM2_ROOTSM2_ALLSM2_ALL'<li>[if( id==13 || id==0 || id==0 ){<a>[menu_title]</a>}else{<a href="[url]" class="[class] navlev[level]">[menu_title]</a>}]'"</li>"'<ul class="ullev[level]">'"</ul>"true'<ul id="current" class="sf-menu">');?>

Just put id's of the pages u want to be unclickable.

Hope it helps ;)

R.