[TYPO3] How do I make a dropdown menu?

Christopher Torgalson bedlamhotel at gmail.com
Thu Mar 8 17:14:18 CET 2007


Hi,

On 3/8/07, Brian Bendtsen <nightowl at galnet.dk> wrote:
> 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?


Isn't this what 'jsmenu' [1] does in the first place?

-- 
Christopher Torgalson
http://www.typo3apprentice.com/

[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/10/11/


More information about the TYPO3-english mailing list