[TYPO3] How do I make a dropdown menu?
Brian Bendtsen
nightowl at galnet.dk
Thu Mar 8 11:42:37 CET 2007
Tyler Kraft skrev:
> the javascript thats needed to submit the form and send elsewhere...
>
Ah, I thought TYPO3 took care of it for me.
I have created the small javascript:
function goPage(pageid) {
document.location = "index.php?id="+pageid;
}
I have changed my script to:
#DropDown menu 1
lib.dropdown1 = HMENU
lib.dropdown1.entryLevel = 2
# First level menu-object, textual
lib.dropdown1.1 = TMENU
lib.dropdown1.1 {
# Normal state properties
NO.allWrap = <option> | </option>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <option class="current" selected="selected"> | </option>
ACT.stdWrap.htmlSpecialChars = 1
wrap = <select onChange="goPage(this.value);"> | </select>
}
So now my question is, how do I get the pages id numbers into the
<option value=""> tag?
/Brian Bendtsen
More information about the TYPO3-english
mailing list