---
title: "Bitte um Hilfe bei Dropdown"
url: "https://www.typo3.net/d/50494-bitte-um-hilfe-bei-dropdown"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2006-09-23"
last_reply: "2006-09-23"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Bitte um Hilfe bei Dropdown

TYPO3 › Menüs · 2 Antworten · gestartet 2006-09-23

## Eröffnungsbeitrag

**lorroloco** · 2006-09-23 · [Beitrag #1](https://www.typo3.net/d/50494-bitte-um-hilfe-bei-dropdown/1)

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

```typoscript
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!

## Antworten

### [#2](https://www.typo3.net/d/50494-bitte-um-hilfe-bei-dropdown/2) · user667 · 2006-09-23

Hi,

gibt es nicht den Flag "selected"? Versuchs mal mit sowas:

```typoscript
      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
          #HIER:
          ACT = 1
          ACT.allWrap = <option value="{elementUid}" selected> | </option>
          ACT.doNotLinkIt = 1
        }
      }
```

Grüße

### [#3](https://www.typo3.net/d/50494-bitte-um-hilfe-bei-dropdown/3) · lorroloco · 2006-09-23

Super, klappt.
Vielen Dank

---

Quelle: „Bitte um Hilfe bei Dropdown“, typo3.net, https://www.typo3.net/d/50494-bitte-um-hilfe-bei-dropdown
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
