How to make parent menu unclickable?

Roych

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.

DarkViper

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.
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

dbs

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>}]'
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

Tommy

You could try to replace the link's href value with a `#`.
Mein Blog: [url=http://bratler.net]http://bratler.net[/url]

[url=http://stackoverflow.com/users/1453303/thomas-klose][img]http://stackoverflow.com/users/flair/1453303.png[/img][/url]

daydreamer

Hi,

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

Thanks