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
http://forum.WebsiteBaker.org/index.php/topic,5730.msg37501.html#msg37501
Is it a big deal to make $aItemClose and $aMenuClose as format strings like $ItemOpen and $aMenuOpen ?
<?php show_menu2(0, SM2_ROOT, SM2_CURR+1, '','[if(class!=menu){[a][menu_title]</a>}]','','',''); ?>
Probably what you want. Lifted verbatim from the examples site:http://code.jellycan.com/sm2test/Root Level Onlyshow_menu2(0, SM2_ROOT, SM2_START);Children/SiblingsThis is often used when splitting menus between the root menu and a side menu showing the children of the current page. This menu will show all of the children of the current top level menu, but will continue to display the siblings of child pages as well when a lower level menu is selected.show_menu2(0, SM2_ROOT+1, SM2_CURR+1);Probably what you do NOT want. Anything that has [if...] embedded in it.Have fun.
show_menu2(0, SM2_ROOT+1, SM2_CURR+1)
<?php show_menu2(0, SM2_ROOT, SM2_START, '<ul>' , '<li class="menu">[a][menu_title]</a>', '</li>' , '</ul>', '', ''); ?>
I've tried many combinations of the code but I can't find the right one.I have the following:Topic 1- Sub Topic 1a- Sub Topic 1b- Sub sub Topic 1baTopic 2- Sub Topic 2a- Sub Topic 2b- Sub sub Topic 2ba- Sub sub Topic 2bbWhat I want is:When you are in one of Topic 1's Children (Sub Topic 1a, - Sub Topic 1b or Sub sub Topic 1ba) then I want the menu to show all of the children of 1.When you are in one of Topic 2's Children (Sub Topic 2a, - Sub Topic 2b, Sub sub Topic 2ba or Sub sub Topic 2bb) then I want the menu to show all of the children of 2.The result has to be that there are 2 menu's: one with all the children (and sub children) of Topic 1 and one with all the Children (and sub children) of Topic 2.I hope that someone know what I mean and have an answer!
read the documentation of show menu 2 and make the relevant page_ids the starting point.
show_menu2(0, 1, SM2_ALL, SM2_ALL);
Easiest way ... make 2 menu's (look for multiple menu in forum). Use standard menu call in template, just calling the menu numbers.
<div id="navigation"> <?php show_menu2(0, SM2_ROOT, SM2_START);?> </div>
<div id="rechtespalte"> <?php show_menu2(1,SM2_ROOT+1, SM2_START);?> </div>
<div id="metanav"> <?php show_menu2(2, 19, SM2_ALL, SM2_ALL);?> </div>
$menu[1]='Hauptnavigation';$menu[2]='Subnavigation';$menu[3]='Metanavigation';
$menu[0]='Hauptnavigation';$menu[1]='Subnavigation';$menu[2]='Metanavigation';