WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Menu with subpages in set of drop down (select) boxes?
(1/1)
sparkdigital:
Hi,
Would it be possible to display my menus in drop down or select boxes? I would like the following:
My top level pages to display in the first drop down box, and when a page has been selected from that box, the subpages for that page are to be displayed in the second drop down box.
For example:
Drop down box 1:
- vegetables
- fruit
- dairy
When selected 'dairy', a second drop down box displays the subpages for dairy:
- cheese
- milk
- yoghurt
ANy ideas on whther this is possible and if so, how?
Thanks!
Konrad
kweitzel:
In general with a little bit of code it should be possible ... I think show_menu2 would be the right menufunction for this
Consider:
1) Just call the current level (remember the nested lists that the menu generates!)
2) on selecting the Option pull the page_id of that menuoption and pass it to show_menu2
3) let show_menu2 build the second optionlist based on your selections page_id
cheers
Klaus
Navigation
[0] Message Index
Go to full version