WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: creativeone on May 09, 2008, 10:18:08 PM

Title: Strange top menu linking
Post by: creativeone 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.
Title: Re: Strange top menu linking
Post by: BerndJM 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
Title: Re: Strange top menu linking
Post by: 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>
Title: Re: Strange top menu linking
Post by: Ruud on May 09, 2008, 11:53:38 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 (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
Title: Re: Strange top menu linking
Post by: creativeone on May 10, 2008, 12:39:49 AM
You are a genious!  Thank you so much - it worked like a charm.