Hi Leute
Ich habe eine Seiten-Struktur wie folgt:
root //entryLevel=0
+-Seite_1 //entryLevel=1
| +-Seite_1-1 //entryLevel=2
| | +-Seite_1-1-1 //entryLevel=3
| | +-Seite_1-1-2 //page-id=5
| | | +-Seite_1-1-2-1
| | | | +-Seite_1-1-2-1-1
| | | | +-Seite_1-1-2-1-2
| | | | +-Seite_1-1-2-1-3
| | | +-Seite_1-1-2-2
| | | +-Seite_1-1-2-3
| | |
Ich habe nun ein GMENU definiert, das an der Seite mit der id=5 beginnt. Klicke ich auf die Seite_1-1-2-1 klappt das Untermenü auch ganz brav auf. Klicke ich auf einen Untermenüpunkt, dann klappt das Untermenü zusammen. Warum? habe ich etwas vergessen???
Was mich in diesem Zusammenhang noch interessiert ist, warum ich bei entryLevel den Wert -2 setzen muß, damit das Untermenü überhaupt angezeigt wird! Andere Werte (z.B. 3 oder 4 funzen nicht; es wird dann gar nichts mehr angezeigt). Setze ich den Wert auf 0 wird zwar das Menü angezeigt, aber KEIN Untermenü.
Danke im voraus...
Hier der TypoScript-Code:
#Haupt-Menu
MENU_LINKS = HMENU
MENU_LINKS {
entryLevel = -2
special = directory
special.value = 5
1 = GMENU
1.NO = 1
1.NO {
wrap = |<img src="fileadmin/images/black_1x1.gif" width="1" height="3" alt="" />
XY = 180, 20
backColor = {$MENU_LINKS_LV1_bgColor_NO}
10 = TEXT
10.text.field = title
10.fontColor = {$MENU_LINKS_LV1_fontColor_NO}
10.fontFile = fileadmin/fonts/verdana.ttf
10.fontSize = 13
10.niceText = 0
10.offset = 14, 14
20 = IMAGE
20.offset = 0, 4
20.file = {$ICON_MENU_NOMORE_ITEMS}
}
1.RO < .1.NO
1.RO = 1
1.RO.backColor = {$MENU_LINKS_LV1_bgColor_RO}
1.IFSUB < .1.NO
1.IFSUB = 1
1.IFSUB {
20 = IMAGE
20.file = {$ICON_MENU_MORE_ITEMS}
}
1.IFSUBRO < .1.IFSUB
1.IFSUBRO = 1
1.IFSUBRO.backColor = {$MENU_LINKS_LV1_bgColor_RO}
#2. Menu-Ebene
2 < .1
2.NO {
backColor = {$MENU_LINKS_LV2_bgColor_NO}
10.fontColor = {$MENU_LINKS_LV2_fontColor_NO}
10.fontSize = 11
10.offset = 25,14
20 = IMAGE
20.offset = 10, 5
20.file = {$ICON_MENU_NOMORE_ITEMS}
}
2.RO < .2.NO
2.RO = 1
2.RO.backColor = {$MENU_LINKS_LV1_bgColor_RO}
} #Ende der Haupt-Navigation