Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 04:32:27 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155476 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Submenu to stay on all pages  (Read 538 times)
applepie

Offline Offline

Posts: 342


« 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
BerndJM

Offline Offline

Posts: 1764



« 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.
applepie

Offline Offline

Posts: 342


« Reply #2 on: January 21, 2009, 01:12:23 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
applepie

Offline Offline

Posts: 342


« 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
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!