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

show_menu2 question

<< < (2/2)

pieterb:
Hi all,

This is not really the issue at hand. I do have a separate language menu (separate menu call), but what I want is that the rest of the entire menu is shown, based on that language.

You can check www.jameskeene.nl to see the current menu in action. Everything looks fine on the homepage and also everything is fine when you click any of the main menu items. But when you click one of the submenu items, only the submenu items are shown.

mjm4842:
Hi Pieterb,

If it is the full full menu that you want, why not just use the "Full" example (the very first one) at http://www.websitebakers.de/sm2/pages/enterprise.php ?

Either that or we are really not understanding what you are trying to achieve. Perhaps a visual example demonstrating the difference between what you have now and what you want would be helpful.

Best regards,

Michael

pieterb:
Dear Michael,

With the full menu, you also see the NL / EN options in the menu. And that's not what I want.

If you take a look at the site (www.jameskeene.nl), you can see what I mean. The main menu on the left hand side is perfect. But when you click a submenu item (for example Behind your Conversation), the menu disappears and only shows the three submenu items from the current submenu. I would like to keep the menu that's displayed on the homepage.

Hope this clarifies things a bit. Thanks for thinking with me.

mjm4842:
Hi Pieterb,

I now see what you mean. I didn't realize that those were sub-menu items.

Can you post your show_menu2() line and related code for us?

Michael

pieterb:
Sure.

For the language menu I have:

--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START); ?>
--- End code ---

For the main menu I have:

--- Code: ---<?php 
$nTreeRootId = (int) show_menu2(0, SM2_CURR, SM2_START, SM2_CRUMB|SM2_BUFFER, &#39;[parent]&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;);
show_menu2(0, $nTreeRootId, SM2_ROOT+1, SM2_ALL); 
?>

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version