---
title: "Einmal mehr entryLevel..."
url: "https://www.typo3.net/d/33357-einmal-mehr-entrylevel"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2005-11-16"
last_reply: "2005-11-16"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Einmal mehr entryLevel...

TYPO3 › Menüs · 1 Antwort · gestartet 2005-11-16

## Eröffnungsbeitrag

**Gsicht** · 2005-11-16 · [Beitrag #1](https://www.typo3.net/d/33357-einmal-mehr-entrylevel/1)

Hallo

Ich verliere gleich meine Nerven...

Ich habe eine Seite mit folgendem Aufbau:

Hauptmenu 1
Hauptmenu 2
Hauptmenu 3
-Submenu 1
-Submenu 2
--Subsubmenu 1
--Subsubmenu 2

Einen Level über den Hauptmenupunkten habe ich die Menus definiert:

-Ein Menu mit entryLevel 0 (=Hauptmenu)
-Ein Menu mit entryLevel 1 (=Submenu)

Nun Habe ich auf Submenu 1 ein neues Template erstellt, da diese Seite ein anderes HTML-Template verwendet. Dort sollen sowohl das Hauptmenu als auch das Submenu angezeigt werden. Also habe ich dort  diese 2 Menus erstellt:

-Ein Menu mit entryLevel -1 (=Hauptmenu)
-Ein Menu mit entryLevel 0 (=Submenu)

Nun wird keines dieser beiden Menus angezeigt. Hier der relevante Teil meines TS:

```typoscript
#Menu----------------------------------------------
temp.mainTemplate.subparts.menu_1 = HMENU
temp.mainTemplate.subparts.menu_1.entryLevel = -1

temp.mainTemplate.subparts.menu_1.1 = TMENU
#temp.mainTemplate.subparts.menu_1.1.expAll = 1

#Menu normal----------------------------------------------
temp.mainTemplate.subparts.menu_1.1.NO=1
temp.mainTemplate.subparts.menu_1.1.NO.ATagParams = class="topnavi"
temp.mainTemplate.subparts.menu_1.1.NO.linkWrap (
| <span class="sep">/ </span> |*| | <span class="sep">/ </span>|*| |
)
       
#Menu aktiv----------------------------------------------
temp.mainTemplate.subparts.menu_1.1.ACT=1
temp.mainTemplate.subparts.menu_1.1.ACT.ATagParams = class="tpdown"
temp.mainTemplate.subparts.menu_1.1.ACT.linkWrap (
| <span class="sep">/ </span> |*| | <span class="sep">/ </span>|*| |
)
   
#Submenu----------------------------------------------
temp.mainTemplate.subparts.menu_2 = HMENU 
#temp.mainTemplate.subparts.menu_2.entryLevel = 0

temp.mainTemplate.subparts.menu_2.1 = TMENU
#temp.mainTemplate.subparts.menu_2.1.expAll = 1

temp.mainTemplate.subparts.menu_2.1.NO = 1
temp.mainTemplate.subparts.menu_2.1.NO.ATagParams = class = "secnavi"
temp.mainTemplate.subparts.menu_2.1.NO.linkWrap (
| <span class="sep">/ </span> |*| | <span class="sep">/ </span>|*| |
)
       
temp.mainTemplate.subparts.menu_2.1.ACT = 1
temp.mainTemplate.subparts.menu_2.1.ACT.ATagParams = class = "navidown"
temp.mainTemplate.subparts.menu_2.1.ACT.linkWrap (
| <span class="sep">/ </span> |*| | <span class="sep">/ </span>|*| |
)
```

Was mache ich bloss falsch? Danke für jede Hilfe  :)

-Gsicht

## Antworten

### [#2](https://www.typo3.net/d/33357-einmal-mehr-entrylevel/2) · Gsicht · 2005-11-16

Kann ja nicht gehen...

> Additional Explanation for entryLevel
>
> A value of 0 means the rootlevel
> All positive integer values mark levels counted ascending from the root level
> A value of -1 means the "outermost" level
> All negative integer values mark levels descending from the "outermost" level
>
> To light this a little bit up you just need some logic:
> The "outermost" level definitely has to be the current level since a rootline is always ONE branch of a tree. If "outermost" could mean the "end of a branch" you couldn't say which end, since the current page could have more than one branch in the ascending direction, but there can be only one branch to follow in the descending direction. This means:
>
> Positive values for entryLevel are always counted from the rootpage (0) and they are "fixed" values. Negative values are always counted descending from the current page and therefor kind of "variable" values.
>
> W --> Rootlevel (0)
> |_X --> Level 1
> | |_Y --> Level 2
> | | |_Z --> Level 3
>
> Assuming the current page is Y the values will be:
> W 0 or -3
> X 1 or -2
> Y 2 or -1
> Z 3
>
> If the current page is Z the values will be:
> W 0 or -4
> X 1 or -3
> Y 2 or -2
> Z 3 or -1
>
> You see the positive values are equal for both cases while the negative values change.

Naja, ich hab's jetzt halt mit special = directory gelöst...

-Gsicht[/quote]

---

Quelle: „Einmal mehr entryLevel...“, typo3.net, https://www.typo3.net/d/33357-einmal-mehr-entrylevel
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
