WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2 mainmenu + submenu problem
  • Print
Pages: [1]   Go Down

Author Topic: show_menu2 mainmenu + submenu problem  (Read 7449 times)

JonH

  • Guest
show_menu2 mainmenu + submenu problem
« 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!
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8545
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: show_menu2 mainmenu + submenu problem
« Reply #1 on: October 06, 2008, 06:47:36 AM »
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
Code: [Select]
<?php show_menu2(); ?>
Matthias
Logged

JonH

  • Guest
Re: show_menu2 mainmenu + submenu problem
« Reply #2 on: October 06, 2008, 09:32:14 AM »
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?
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: show_menu2 mainmenu + submenu problem
« Reply #3 on: October 06, 2008, 11:07:57 AM »
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
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

JonH

  • Guest
Re: show_menu2 mainmenu + submenu problem
« Reply #4 on: October 06, 2008, 11:17:15 AM »
Thanks a million, Ruud!   :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • show_menu2 mainmenu + submenu problem
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2