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
Placeholder Menu items are not a feature within the WB Menu Functions.
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, '[li][if(LEVEL==0){<span>[menu_title]</span>}else{<a href="[url]"><span>[menu_title]</span></a>}]', //$aItemOpen "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
<?phpshow_menu2( $aMenu = 0, $aStart = SM2_ROOT, $aMaxLevel = SM2_CURR+1, $aOptions = SM2_TRIM,/* the next two lines have to do with the LINKS */ $aItemOpen = '[li][a][menu_title]</a>', $aItemClose = '</li>',/* the next two lines have to do with the Menu and Submenu Structure*/ $aMenuOpen = '[ul]', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false );?>
I basically made a parent page, type as a menu link, then put in the menu link, link: external link > then I put in the websites home page.This allows you to still have a drop down menu with the links but having the parent as a link to main-site and not opening up a new page, which I wanted to happen.
it doesnt seem to bring that element in when I put it into the templates index.php
<?php show_menu2(0,SM2_ROOT, SM2_ALL, SM2_ALL, '[li][if( level == 0 ){<a>[menu_title]</a>}else{<a href="[url]">[menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">' ); ?>
<?php[li][if(level == 0){<a>[menu_title]</a>} if(page_id == 777){<a>XXXX[menu_title]XXXX</a>}else{<a href="[url]">[menu_title]</a>}]
<ul><li><a href="http://YOURDOMAIN.COM">Home</a></li></ul><?php show_menu2(0,SM2_ROOT, SM2_ALL, SM2_ALL, '[li][if( level == 0 ){<a>[menu_title]</a>}else{<a href="[url]">[menu_title]</a>}]', "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
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">' ); ?>
that works a treat,just give me a php book title and your address via message.get it posted by the end of the week hopefully (I hope it aint too pricey mind),