Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:18:24 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: How to assign different MENUS to different PAGES?  (Read 925 times)
mantisinc

Offline Offline

Posts: 4


« on: December 09, 2007, 02:26:48 PM »

Hi guys,

Okay, I have got the hang of assigning different pages to different menus. But how would I got about assigning different menus to different pageS?

For example, if I had a contact page, when I cam on that page, a separate menu would displaying, giving links to other contact methods.

A little like on this site, when you click the "start" link at the top, there is a different left hand side menu to when you click "download".

How is this done?

Thanks in advance!
Logged
mantisinc

Offline Offline

Posts: 4


« Reply #1 on: December 11, 2007, 03:23:54 PM »

Pleeease help guys, this is killing me X)
Logged
yppds

Offline Offline

Posts: 32


« Reply #2 on: December 11, 2007, 04:43:41 PM »

Hi Mantisinc,

You can take a look at this thread: http://forum.websitebaker.org/index.php/topic,1202.0.html

I would also suggest you to use WB's search engine. There is plenty of information you could use.

Regards
Logged
marathoner

Offline Offline

Posts: 495


« Reply #3 on: December 11, 2007, 05:05:56 PM »

Your terminology is a bit confusing. You need to understand that WB defaults to a single menu but also supports multiple menus. Keep in mind that this is referring to how pages are grouped and linked together in terms of parent/child relationships. Multiple menus, once enabled via the admin control panel, are defined in the info.php file of you template.

You asked about assigning a different menu which sounds like multiple menus. However, it sounds like from your description that you are really just wanting to display the children of the active parent somewhere else on the same page...is this correct? If so, this is a single menu. You would simply call the menu function at the top level in one part of your template and call the second level of the menu in a different part of your template. If you are using show_menu2 then look at the documentation there. You might also want to use the output buffer to check if a child pages exist for a given parent and only display the  children if they exist.

You might find it helpful to look at templates similar to what you want and review how they achieve the results. Then modify this to suit your needs.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!