orchardcms - Orchard Navigation - how to make menu link not clickable -


i have following menu navigation:

home product      product 1      product 2 news      press releases 

every menu item above links content, except "product".i need make when user click "product" not go anywhere.

i tried use "custom link", , enters "#" or "javascript:void(0)" in url, not work since orchard prefix url "/".

also, tried use "html menu item" , enter "product" in html body, rendered

<li><span class="raw"><p>product</p></span><ul>...</ul></li> 

i want either following:

<li><a href="#">product</a><ul>....</ul></li> 

or

<li>product<ul>....</ul></li> 

is there easy way this?

in menu.cshtml file under core->shapes->views directory in orchard.web project, this:

$(document).ready(function () {     $("#nav a").click(function(e) {         e.preventdefault();     }); }); 

the above disables clicking on of menu links, if want prevent clicking on second level menu items:

$('#nav li ul li a').click(function(e){      e.preventdefault(); }); 

that menu.cshtml file view navigation menu, can define it's behavior wish there. can @ this answer of mine well.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -