Zum Inhalt springen

dropdown - bitte hilfe!!!

Erstellt am 23. September 2006 · 1 Antwort · letzte Antwort am 27. September 2006

Tags: Frage

lorroloco ·

Hi erstmal!
Hab mit hilfe von Typo-Script ein Dropdownmenu auf meiner seite:

tmp.LOCATIONS = HMENU
tmp.LOCATIONS {
  special = directory
  special.value = 13
  wrap = <form name="quickmenu" action=""><select name="pfad"  onchange="window.location='index.php?id='+document.quickmenu.pfad.options[document.quickmenu.pfad.selectedIndex].value" class="dropdown"> |</select> </form>
  1 = TMENU
  1 {
    NO = 1
    NO.allWrap = <option value="{elementUid}"> | </option>
    NO.doNotLinkIt = 1


  }
}

funktioniert soweit ganz gut, nur wenn ich einen menüpunkt auswähle, wird zwar die jeweilige seite angezeigt, doch der ausgewählte menüpunkt bleibt nicht aktiv und es wird wieder der erste menüpunkt als makiert gesetzt.

Vielen Dank im Vorraus!!!

zabinetta ·

ganz einfach: es gibt in deinem typoscript-menü keine aktiven menüpunkte.
probiers mal mit

...
1.ACT = 1
1.ACT < tmp.LOCATIONS.1.NO
1.ACT.allWrap = <option value="{elementUid}" selected="selected"> | </option>
...