WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Strange top menu linking
(1/1)
creativeone:
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.
BerndJM:
Hi,
it would be helpfull, if you show us the two menu calls, you use in your template.
Regards Bernd
creativeone:
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>
Ruud:
--- 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>
--- End quote ---
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.
--- End quote ---
Ruud
creativeone:
You are a genious! Thank you so much - it worked like a charm.
Navigation
[0] Message Index
Go to full version