WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Quote from: tsb on May 25, 2010, 08:49:13 PMStefek, just getting errors, if I can get this to work, I definitely will put some money towards your way.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: [Select]<?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">' ); ?>Please try it, and let me know how it works.You will need to replace 777 by the pageID of 'home'.Kind regards,Stefek
Stefek, just getting errors, if I can get this to work, I definitely will put some money towards your way.
<?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">' ); ?>