If I understand you correctly, you want to have 1) root level menu2) child menu 3) an unrelated utility menu. In this case I would dispense with the whole multiple menu mess, and instead create your menu as normal. In this menu, add a top level hidden item "Utility Menu" and then add all of the utility menu items underneath it. Then make the 3rd call to show_menu2 using that hidden menu item as the root.i.e. See the sample page at http://code.jellycan.com/sm2test/These are your menus.1. Root Level Only2. Children/Siblings3. Hidden MenuB
This menu won't show normally because of the invisible parent. However, you can show it in your template where-ever you want by specifying the ID of the invisible parent:<?php show_menu2(1, **INVISIBLE_PAGE_ID**, SM2_ALL, SM2_ALL); ?>
<?php show_menu2(0, SM2_ROOT, SM2_CURR+1, SM2_PRETTY, '[list][li]<a href="[url]">[menu_title]</a>'); ?>
else if ($aFlags & SM2_TRIM) { // parents and siblings of parents // Always show the siblings if (!array_key_exists('sm2_is_sibling', $page) && !array_key_exists('sm2_on_curr_path', $page) // not set if false, so existence = true && !array_key_exists('sm2_path_sibling', $page)) { // not set if false, so existence = true continue; } }
<input type="hidden" name="referrer" value="[REFERRER_ID]" />
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID')?REFERRER_ID:PAGE_ID;?>" />
show_menu2 error: no flags from group 1 supplied! Exactly one flag is required!