WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: richwalker 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
-
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 (http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php).
-
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:
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