Announcement

Collapse
No announcement yet.

Sections in a dropdown list (html <select>)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sections in a dropdown list (html <select>)

    Hi,

    I would like to put all the sections of my site into a dropdown list which can be expanded by user, and, depending on a choice, the form would take the user to the page corresponding to the section chosen.

    Possibly, I would like to include all sections WITH their subsections in it.

    I have come up with the following code:

    Code:
    <FORM NAME="nav"><DIV>
    <SELECT NAME="SelectURL" onClick="code for opening chosen url">
    <OPTION VALUE="#" SELECTED>Please select an item:
    <OPTION VALUE="block_ifSectionPageName/block block_ifSectionURL/block">SectionName
    [/COLOR]
    </SELECT><DIV>
    </FORM>
    And it works, except that it only contains ONE item - which is the name of the Current section (the section in which that form is placed in). I obviously need the above code to be looped somehow until all the sections and subsections are included in it, but I was trying to investigate how the TOPLEVELSECTIONLIST does it and haven't found anything helpful, but I guess I would need a similiar way to do it... Can anyone help me on that please?

    Thank you

    Albert

    #2
    use the childsectionlist block within the entiresectionlist block.

    Comment


      #3
      This is in the Advanced Guide under "Creating a Drop-Down List Containing the Top-Level Sections and Sub Sections".
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X