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 »
  • Menu with subpages in set of drop down (select) boxes?
  • Print
Pages: [1]   Go Down

Author Topic: Menu with subpages in set of drop down (select) boxes?  (Read 4155 times)

Offline sparkdigital

  • Posts: 366
  • Once a baker, always a baker!
    • romantic hotels
Menu with subpages in set of drop down (select) boxes?
« on: April 06, 2008, 11:39:55 AM »
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
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Menu with subpages in set of drop down (select) boxes?
« Reply #1 on: April 06, 2008, 12:29:58 PM »
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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Menu with subpages in set of drop down (select) boxes?
 

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