WebsiteBaker Support (2.8.x) > Templates, Menus & Design

different menus on different pages

(1/1)

richwalker:
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

Swon:
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.

crnogorac081:
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: ---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
}

--- End code ---

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


Navigation

[0] Message Index

Go to full version