WebsiteBaker Support (2.8.x) > Templates, Menus & Design
How do you make the parent menu unclickable? <SOLVED>
Roych:
--- 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.
--- End quote ---
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: ---<?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">'
);
?>
--- End code ---
Please try it, and let me know how it works.
You will need to replace 777 by the pageID of 'home'.
Kind regards,
Stefek
--- End quote ---
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.
Navigation
[0] Message Index
[*] Previous page
Go to full version