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.
Hi,
it would be helpfull, if you show us the two menu calls, you use in your template.
Regards Bernd
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>
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 (http://code.jellycan.com/files/show_menu2-README.txt)
QuoteMenu 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
You are a genious! Thank you so much - it worked like a charm.