---
title: "Submenu verschwindet."
url: "https://www.typo3.net/d/14881-submenu-verschwindet"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2004-08-18"
last_reply: "2004-08-20"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Submenu verschwindet.

TYPO3 › Menüs · 3 Antworten · gestartet 2004-08-18

## Eröffnungsbeitrag

**relusion** · 2004-08-18 · [Beitrag #1](https://www.typo3.net/d/14881-submenu-verschwindet/1)

Ich habe mein Menu so umgesetzt, das die Unterpunkte des Menus nicht direkt unter Ihren Menupunkt sondern an einer anderen Stelle angezeigt werden.

Layout:

**Menupunkt1        |   Untermenupunkt 2.1

*Menupunkt2*        |   Untermenupunkt 2.2

Menupunkt3        |   Untermenupunkt 2.3

Menupunkt4        |

Menupunkt5        |**

Klappt auch ganz gut. Mein Problem ist folgendes:
Wenn ich auf einen Menupunkt im Untermenu klicke wird zwar meine gewünschte Seite angezeigt, aber die Untermenupunkte verschwinden. Hier mein Scipt:

> # Configuring the Auto-Parser for main template:
>
> plugin.tx_automaketemplate_pi1 {
>
> # Read the template file:
>
> content = FILE
>
> content.file = fileadmin/template/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
>
> TD.all = 1
>
> }
>
> # Prefix all relative paths with this value:
>
> relPathPrefix = fileadmin/template/main/
>
> }
>
> # Menu 1 cObject
> temp.menu_1 = HMENU
> # First level menu-object, textual
> temp.menu_1.1 = TMENU
> temp.menu_1.1 {
> # Normal state properties
> NO.allWrap = <div class="menu1-level1-no"> | <img src="fileadmin/template/main/images/rechts2pfeil.gif" height="6" width="8" alt="rechts1pfeil"></div>
> # Enable active state and set properties:
> ACT = 1
> ACT.allWrap = <div class="menu1-level1-act"> | </div>
> }
>
> # Menu 2 cObject
> temp.menu_2 = HMENU
> # First level menu-object, textual
> temp.menu_2.1 = TMENU
> temp.menu_2.special = directory
>
> # Nur Unterseiten anzeigen
> temp.menu_2.1 {
> # Normal state properties
> NO.allWrap = <div class="menu2-level1-no"> | <img src="fileadmin/template/main/images/unten1pfeil.gif" height="6" width="8" alt="unten1pfeil"></div>
> # Enable active state and set properties:
> ACT = 1
> ACT.allWrap = <div class="menu2-level1-act"> | </div>
> }
>
> # 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 ###menu_1### subpart with dynamic menu:
>   subparts.menu_1 < temp.menu_1
>
> subparts.menu_2 < temp.menu_2
>
> # Substitute the ###content### subpart with some example content:
>
> subparts.content < styles.content.get
>
> }
>
> # 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

[/i]

## Antworten

### [#2](https://www.typo3.net/d/14881-submenu-verschwindet/2) · ffr_dev · 2004-08-18

sieht eigentlich gut aus.
hast du den cache geleert??

### [#3](https://www.typo3.net/d/14881-submenu-verschwindet/3) · relusion · 2004-08-18

ja hab ich. ich hab keine ahnung woran das liegen könnte.

### [#4](https://www.typo3.net/d/14881-submenu-verschwindet/4) · relusion · 2004-08-20

kann mir jemand dabei helfen?

---

Quelle: „Submenu verschwindet.“, typo3.net, https://www.typo3.net/d/14881-submenu-verschwindet
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
