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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 »
  • Strange top menu linking
  • Print
Pages: [1]   Go Down

Author Topic: Strange top menu linking  (Read 5894 times)

creativeone

  • Guest
Strange top menu linking
« on: May 09, 2008, 10:18:08 PM »
I have 2 menus in my site - http://www.seedsowersministry.org/wb
 - one main menu and one at the very top.  When I click the link on the very top menu, it opens the page but on the main menu it only shows the pages that are in the top nav.  I have never seen this before.  What am I missing or doing wrong? Thanks.
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Strange top menu linking
« Reply #1 on: May 09, 2008, 10:26:48 PM »
Hi,

it would be helpfull, if you show us the two menu calls, you use in your template.

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

creativeone

  • Guest
Re: Strange top menu linking
« Reply #2 on: May 09, 2008, 11:19:46 PM »
Sorry I didn't think about that

top nav is <div id="topmenu"><div class="topmenu"><?php show_menu(2); ?></div></div>

main menu is 
<div id="mainmenu"><?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?></div>
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Strange top menu linking
« Reply #3 on: May 09, 2008, 11:53:38 PM »
Quote from: creativeone on May 09, 2008, 11:19:46 PM
Sorry I didn't think about that

top nav is <div id="topmenu"><div class="topmenu"><?php show_menu(2); ?></div></div>

main menu is 
<div id="mainmenu"><?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?></div>

show_menu2(0,..... shows the current active menu.
You probably wat to use show_menu2(1,.... for the main menu.

From the show_menu2 manual:
http://code.jellycan.com/files/show_menu2-README.txt
Quote
    Menu number to use. This is useful when you are using multiple menus.
    Supplying a menu number of 0 will use the default menu for the current
    page. Supplying SM2_ALLMENU will return all menus in the system.

Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

creativeone

  • Guest
Re: Strange top menu linking
« Reply #4 on: May 10, 2008, 12:39:49 AM »
You are a genious!  Thank you so much - it worked like a charm.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Strange top menu linking
 

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