WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: JonH on October 06, 2008, 03:38:10 AM
-
How do I display the mainmenu links and submenu links at the same time? Now when I click on a mainmenu link with subpages, the mainmenu link disappears and the submenu links appear.
This is what I have now:
Mainmenu:
<?php show_menu2(1); ?>
Submenu:
<?php show_menu2(0,SM2_ROOT+1); ?>
I tried different settings, but they are very confusing.
Please advice, thanks!
-
Hello,
if you wanna have both menu's the same links why didn't you use for both the same menu-calls? Try both with a simple <?php show_menu2(); ?>
Matthias
-
I don't need the same links showing on both menus. I need both menus showing at the same time (if there are subpages).
Look here at the site under construction:
http://realitycheck.fi/wb/pages/palvelut.php
If you click "palvelut" the submenu will show, but the mainmenu will disappear. How do I make the mainmenu to stay and show a submenu if there are subpages?
-
I think that this is what you want:
The top menu: show_menu2(0,SM2_ROOT,SM2_START)
The second: show_menu2(0,SM2_ROOT+1, SM2_CURR+1)
For all options have a look at the developer website: http://code.jellycan.com/sm2test/
Ruud
-
Thanks a million, Ruud! :-D