WebsiteBaker Support (2.8.x) > Templates, Menus & Design
#solved# SM2 challenge question: show siblings only from different menu's
Paul - Westhouse IT:
Sure, send it over and I'll have a look.
Boudi:
Finally, after almost a week I found the solution! Here are the codes (include personal styling)
Top menu:
--- Code: ---<?php show_menu2(2,SM2_ROOT, SM2_START,true,'[a][menu_title][/a] &#8226; ','','','','',''); ?>
--- End code ---
Main menu:
--- Code: --- <?php show_menu2(1, SM2_ROOT, SM2_START, false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
SM2 code to show the childs from a specified parent page from both menu's on a different location (so not pulldown). Here's the code from that one:
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE,'[a]<br /><span class="block"> &#9632; </span> [menu_title][/a]','','','','',''); ?>
--- End code ---
Don't forget to point the childs to the same menu as the parent in the configuration of this page. (eg: top menu)
Regards,
Boudi
PS: I want to thank Paul and Klaus for offering their help!
Navigation
[0] Message Index
[*] Previous page
Go to full version