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.8 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 »
  • Submenu to stay on all pages
  • Print
Pages: [1]   Go Down

Author Topic: Submenu to stay on all pages  (Read 5734 times)

apple

  • Guest
Submenu to stay on all pages
« on: January 20, 2009, 01:20:23 AM »
Hi

My site contain main menu on the top and submenu on the left coloum. How do I get my submenu to link to all my top menu. Hope I am making sense. Thanks.
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Submenu to stay on all pages
« Reply #1 on: January 20, 2009, 03:10:05 AM »
Hi,
a little bit more information please:
- WB Version?
- you use show_menu or show_menu2?
- or maybe a template-specific menu-function?
- give us a code example, how you call the menu(s)

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

apple

  • Guest
Re: Submenu to stay on all pages
« Reply #2 on: January 21, 2009, 01:12:23 AM »
Quote from: BerndJM on January 20, 2009, 03:10:05 AM
- WB Version?
- you use show_menu or show_menu2?
- or maybe a template-specific menu-function?
- give us a code example, how you call the menu(s)

Thanks.

WB 2.7

Codes below for subemu. Which line should I delete to make the submenu stays?

<?php
// Submenu region, only shown when submenu's are available
ob_start
();
show_menu2
(1, SM2_ROOT+1, SM2_START, false,'
  • [a][menu_title]</a>','</li>', '<ul><dl>Menu</dl>');
    $childmenu
    =ob_get_contents();
    ob_end_clean
    ();
    if
    ($childmenu!="") {?>
    <div id="submenu">
    <?php
    echo $childmenu; ?>
    </div>
    <?php
    } ?>
« Last Edit: January 22, 2009, 12:10:50 AM by applepie »
Logged

apple

  • Guest
Re: Submenu to stay on all pages
« Reply #3 on: January 22, 2009, 03:46:17 PM »
Dont worry, I figured it out. I didnt realised that Vyni changed my template. Would have asked him but he is no longer with us.  :cry:
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Submenu to stay on all pages
 

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