Welcome, Guest. Please login or register.
March 17, 2010, 09:41:35 PM

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.
110308 Posts in 15930 Topics by 9286 Members
Latest Member: lorbas
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Templates, Menus & Design (Moderators: Argos, BerndJM)
| | |-+  show_menu2 mainmenu + submenu problem
Pages: [1] Go Down Print
Author Topic: show_menu2 mainmenu + submenu problem  (Read 1284 times)
JonH

Offline Offline

Posts: 18


« on: October 06, 2008, 03:38:10 AM »

How do I display the mainmenu links and submenu links at the same time? Now when I click on a mainmenu link with subpages, the mainmenu link disappears and the submenu links appear.

This is what I have now:

Mainmenu:
<?php show_menu2(1); ?>

Submenu:
<?php show_menu2(0,SM2_ROOT+1); ?>

I tried different settings, but they are very confusing.

Please advice, thanks!
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #1 on: October 06, 2008, 06:47:36 AM »

Hello,

if you wanna have both menu's the same links why didn't you use for both the same menu-calls? Try both with a simple
Code:
<?php show_menu2(); ?>

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
JonH

Offline Offline

Posts: 18


« Reply #2 on: October 06, 2008, 09:32:14 AM »

I don't need the same links showing on both menus. I need both menus showing at the same time (if there are subpages).

Look here at the site under construction:
http://realitycheck.fi/wb/pages/palvelut.php

If you click "palvelut" the submenu will show, but the mainmenu will disappear. How do I make the mainmenu to stay and show a submenu if there are subpages?
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1271


[[droplets]]


WWW
« Reply #3 on: October 06, 2008, 11:07:57 AM »

I think that this is what you want:

The top menu: show_menu2(0,SM2_ROOT,SM2_START)
The second: show_menu2(0,SM2_ROOT+1, SM2_CURR+1)

For all options have a look at the developer website: http://code.jellycan.com/sm2test/

Ruud
Logged

JonH

Offline Offline

Posts: 18


« Reply #4 on: October 06, 2008, 11:17:15 AM »

Thanks a million, Ruud!   grin
Logged
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!