WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • different menus on different pages
  • Print
Pages: [1]   Go Down

Author Topic: different menus on different pages  (Read 3575 times)

richwalker

  • Guest
different menus on different pages
« on: February 01, 2010, 11:39:28 AM »
Hi folks

Fairly new to website baker and i'm trying to find out if i can have different menu's on different pages. I have tired a search but couldn't find anything.

Does anyone know how to do this?

Thanks

Rich

Logged

Swon

  • Guest
Re: different menus on different pages
« Reply #1 on: February 01, 2010, 12:56:24 PM »
Hey,

You can see how to use the menu module, and how to show different levels of your menu here http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php.
Logged

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
Re: different menus on different pages
« Reply #2 on: February 01, 2010, 02:07:08 PM »
Well if you have for example 2 menus like

MENU 1:
item 1
item 2
item 3
 - sub item 1
 - sub item 2
item 4

MENU 2
cars
boats
houses
 -small houses
 - big houses

you can try with page_id, for example:

Code: [Select]
if (PAGE_ID = 1) {
show_menu(1, .....the rest of SM call)      --- Shows MENU1 for this page_id
} else if (PAGE_ID = 5) {
show_menu(2, .....the rest of SM call) ---- now it shows MENU2
} else {
show_menu(3, .....the rest of SM call)    ----- the defult when page_id is not specified
}

You will notice the first number in SM call (1 , (2 ... it is the menu number..

Insert this code in index.php of your template..

good luck


Logged
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • different menus on different pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2