Hi,
Is it possible to make a parent menu item un-clickable? but not all parent just one or two.
Thanks
You could try to replace the link's href value with a `#`.
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>}]'
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)
I use this and it works great!
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_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.