---
title: "entryLevel Menü der 2 Ebene wird nicht angezeigt"
url: "https://www.typo3.net/d/32460-entrylevel-menue-der-2-ebene-wird-nicht-angezeigt"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2005-10-29"
last_reply: "2005-10-30"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# entryLevel Menü der 2 Ebene wird nicht angezeigt

TYPO3 › Menüs · 1 Antwort · gestartet 2005-10-29

## Eröffnungsbeitrag

**chalm** · 2005-10-29 · [Beitrag #1](https://www.typo3.net/d/32460-entrylevel-menue-der-2-ebene-wird-nicht-angezeigt/1)

Hallo,

mit dem folgenden TS möchte ich gern die zweite Ebene des Menu in einem anderen Bereich öffnen. Wo liegt mein Fehler?

Vielen Dank im voraus!

Mein TS

```typoscript
# get content
styles.content.get = CONTENT
styles.content.get {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos=0
}

# get content Info
styles.content.getInfo < styles.content.get
styles.content.getInfo.select.where = colPos=2

# Menu 1 cObject
temp.Navigation = HMENU
temp.Navigation.entryLevel = 0

# First level menu-object, textual
temp.Navigation.1 = TMENU
temp.Navigation.1 {
# Normal state properties
NO.allWrap = <span class="menu-no"> | </span>
# Enable active state and set properties:
 ACT = 1
 ACT.allWrap = <span class="menu-act"> | </span>
}

# Menu 2 cObject
temp.Navigation2 = HMENU
temp.Navigation2.entryLevel = 1

# second level menu-object, textual
temp.Navigation2.1 = TMENU
temp.Navigation.2.1 {
# Normal state properties
NO.allWrap = <div class="menu2-no"> | </div>
# Enable active state and set properties:
 ACT = 1
 ACT.allWrap = <div class="menu2-act"> | </div>
}


# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
 content = FILE
 content.file = fileadmin/_temp_/main/index.html
# Here we define which elements in the HTML that 
# should be wrapped in subpart-comments:
 elements {
 BODY.all = 1
 BODY.all.subpartMarker = DOCUMENT_BODY
 HEAD.all = 1
 HEAD.all.subpartMarker = DOCUMENT_HEADER
 HEAD.rmTagSections = title

 DIV.all = 1
 SPAN.all = 1
 TD.all = 1
  }
# Prefix all relative paths with this value:
 relPathPrefix = fileadmin/_temp_/main/
}

# Main TEMPLATE cObject for the BODY
 temp.mainTemplate = TEMPLATE
 temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
 template =< plugin.tx_automaketemplate_pi1

# Select only the content between the <body>-tags
 workOnSubpart = DOCUMENT_BODY

# Substitute the ###Navigation### subpart with dynamic menu:
  subparts.menu1 < temp.Navigation
 subparts.Nav < temp.Navigation2



# Substitute the ###Inhalt### subpart with some example content:
  subparts.Inhalt < styles.content.get
  
# Substitute the ###Info### subpart with some example content:
  subparts.Info < styles.content.getInfo

}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}




# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate


# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
```

## Antworten

### [#2](https://www.typo3.net/d/32460-entrylevel-menue-der-2-ebene-wird-nicht-angezeigt/2) · chalm · 2005-10-30

Hey,

ich hab die Lösund gelbst gefunden. Für Suchende hier auch gleich die Lösung.

```typoscript
# get content
styles.content.get = CONTENT
styles.content.get {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos=0
}

# get content Info
styles.content.getInfo < styles.content.get
styles.content.getInfo.select.where = colPos=2

# Menu 1 cObject
temp.Navigation = HMENU
temp.Navigation.entryLevel = 0

# First level menu-object, textual
temp.Navigation.1 = TMENU
temp.Navigation.1 {
# Normal state properties
NO.allWrap = <span class="menu-no"> | </span>
# Enable active state and set properties:
 ACT = 1
 ACT.allWrap = <span class="menu-act"> | </span>
}



# Menu 2 cObject
temp.Navigation2 < temp.Navigation
temp.Navigation2.entryLevel = 1
# second level menu-object, textual
temp.Navigation2.2 = TMENU
temp.Navigation2.2 {
# Normal state properties
NO.allWrap = <div class="menu2-no"> | </div>
# Enable active state and set properties:
 ACT = 1
 ACT.allWrap = <div class="menu2-act"> | </div>
}



# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
 content = FILE
 content.file = fileadmin/_temp_/main/index.html
# Here we define which elements in the HTML that 
# should be wrapped in subpart-comments:
 elements {
 BODY.all = 1
 BODY.all.subpartMarker = DOCUMENT_BODY
 HEAD.all = 1
 HEAD.all.subpartMarker = DOCUMENT_HEADER
 HEAD.rmTagSections = title

 DIV.all = 1
 SPAN.all = 1
 TD.all = 1
  }
# Prefix all relative paths with this value:
 relPathPrefix = fileadmin/_temp_/main/
}

# Main TEMPLATE cObject for the BODY
 temp.mainTemplate = TEMPLATE
 temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
 template =< plugin.tx_automaketemplate_pi1

# Select only the content between the <body>-tags
 workOnSubpart = DOCUMENT_BODY

# Substitute the ###Navigation### subpart with dynamic menu:
  subparts.menu1 < temp.Navigation
  subparts.nav < temp.Navigation2



# Substitute the ###Inhalt### subpart with some example content:
  subparts.Inhalt < styles.content.get
  
# Substitute the ###Info### subpart with some example content:
  subparts.Info < styles.content.getInfo

}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}




# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate


# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
```

---

Quelle: „entryLevel Menü der 2 Ebene wird nicht angezeigt“, typo3.net, https://www.typo3.net/d/32460-entrylevel-menue-der-2-ebene-wird-nicht-angezeigt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
