Liebes Forum,
ich habe, wie auf http://www.zusammen-ev.de zu sehen ist, folgendes Problem:
Ich habe drei Menüs. MENU_OBEN (horizontal oben), MENU_MAIN (horizontal in der Mitte) und MENU_SUB (vertikal links als Untermenü von MENU_MAIN). MENU_MAIN und MENU_SUB funktionieren, aber wenn ich einem Link aus MENU_OBEN folge, dann wird MENU_MAIN durch MENU_OBEN ersetzt. Ich hätte aber gerne, dass MENU_MAIN stehen bleibt. Kann mir jemand dieses Verhalten erklären und mir bei der Lösung helfen. Ich bin zugegebenermaßen noch nicht sehr fit in TypoScript und nach langer Bastelei gerade mit meinem Latein am Ende.
Hier der Code:
seite = PAGE
page.config.sys_language_uid = 1
page.config.extTarget = _self
page.config.language = de
page.config.locale_all = de_DE
seite {
typeNum = 0
bodyTag = <body bgcolor="#EEEE88">
stylesheet = fileadmin/template/zusammen/style.css
meta.AUTHOR = Paul Hirsch
meta.DESCRIPTION = Zusammen e.V.
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/template/zusammen/template.html
10.workOnSubpart = DOKUMENT
10.marks {
# ----- OBEN
MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 135
MENU_OBEN.1 = GMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.NO {
XY =[10.w]+10, 18
10 = TEXT
10.text.field = title
10.fontColor = #000000
10.fontFile = fileadmin/fonts/taffy.ttf
10.fontSize = 14
10.fontStyle = bold
10.offset = 1,14
}
MENU_OBEN.1.RO < .MENU_OBEN.1.NO
MENU_OBEN.1.RO {
tmp < .fontColor
10.fontColor = #99CCCC
}
# ----- MAIN
MENU_MAIN = HMENU
MENU_MAIN.entryLevel = 1
MENU_MAIN.special.value = 136
MENU_MAIN.1 = GMENU
MENU_MAIN.1.NO = 1
MENU_MAIN.1.NO {
XY = [10.w]+20, 28
backColor = #FFFFFF
10 = TEXT
10.text.field = title
10.fontColor = #000000
10.fontFile = fileadmin/fonts/taffy.ttf
10.fontSize = 24
10.fontStyle = bold
10.niceText = 0
10.offset = 1, 20
}
MENU_MAIN.1.RO < .MENU_MAIN.1.NO
MENU_MAIN.1.RO {
backColor = #FFFFFF
10.fontColor = #99CCCC
}
MENU_MAIN.1.CUR < .MENU_MAIN.1.RO
# ----- SUB
MENU_SUB = HMENU
MENU_SUB.entryLevel = 2
MENU_SUB.1 = GMENU
MENU_SUB.1.NO = 1
MENU_SUB.1.NO {
wrap = |<br />
XY = 170, 24
backColor = #FFFFFF
10 = TEXT
10.text.field = title
10.fontColor = #000000
10.fontFile = fileadmin/fonts/taffy.ttf
10.fontSize = 20
10.niceText = 0
10.offset = 7, 16
}
MENU_SUB.1.RO < .MENU_SUB.1.NO
MENU_SUB.1.RO {
backColor = #FFFFFF
10.fontColor = #99CCCC
}
MENU_SUB.1.CUR < .MENU_SUB.1.RO
# MENU_SUB.1.CUR {
# backColor = #FFFFFF
# fontColor = #99CCCC
# }
CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
}
}