WebsiteBaker Support (2.8.x) > Templates, Menus & Design

#solved# SM2 challenge question: show siblings only from different menu's

<< < (4/4)

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,&#39;[a][menu_title][/a]&nbsp;&nbsp;&#38;#8226;&nbsp;&nbsp;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); ?>
--- End code ---

Main menu:

--- Code: ---   <?php show_menu2(1, SM2_ROOT, SM2_START, false, false, false, &#39;<ul id="header_menu" class="menu">&#39;); ?>

--- 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,&#39;[a]<br /><span class="block"> &#38;#9632; </span> [menu_title][/a]&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;); ?>
--- 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