Gibt es eine Möglichkeit die Textfarbe im GMENU dynamisch zu ändern?
Beim GIFBUILDER geht sowas ja für die Hintergrundfarbe mit
backColor.field = dbfield
Allerdings fehlt bei fontColor der sdtWrap.
Ein gegoogeltes Beispiel funktioniert leider nicht.
20.fontColor = TEXT
20.fontColor.field = dbfield
Muss doch irgendwie möglich sein die Schriftfarbe zu ändern.
Problem ist das jede Unterseite eine eigene Layouttfarbe hat, welche im Backend ausgewählt wird. Navigation und Hintergrundbild müssen sich entsprechen anpassen. Hintergrund ist gelöst aber dern Navitext bekomm ich nicht hin.
Hilfe!
Ich merk grad das war die falsche Kategorie, eventuell könnte das jemand in die Menü-Sektion verschieben.
Hab eine Lösung gefunden die zwar nicht wirklich dynamisch ist weil die möglichen Farben vorher festgelegt werden müssen, aber was solls.
lib.secnav = HMENU
lib.secnav.entryLevel = 1
lib.secnav.1 = GMENU
lib.secnav.1.NO {
XY = 195,30 + [13.h]
backColor = #ffffff
#dummy-text
99 = TEXT
99.text.field = title
99.text.listNum = 0
99.text.listNum.splitChar = |
99.fontFile = fileadmin/fonts/arial.ttf
99.fontColor = #455161
99.fontSize = 14
99.offset = 1000,1000
99.align = left
100 < .99
100.offset = 29,9
100.if {
value = #FFE48D
equals.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color
}
110 < .99
110.offset = 29,9
110.if {
value = #C9EAFB
equals.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color
}
120 < .99
120.offset = 29,9
120.if {
value = #F8DFB3
equals.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color
}
130 < .99
130.offset = 29,9
130.if {
value = #D7E7A9
equals.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color
}
101 < .100
101.text.listNum = 1
101.offset = 29, 9+[12.h]
111 < .110
111.text.listNum = 1
111.offset = 29, 9+[12.h]
121 < .120
121.text.listNum = 1
121.offset = 29, 9+[12.h]
131 < .130
131.text.listNum = 1
131.offset = 29, 9+[12.h]
12 < .99
12.text.case = upper
12.text.listNum = 1
12.fontSize = 22
12.offset = 1000,1000
13 < .99
13.text.case = upper
13.text.listNum = 1
13.fontSize = 22
13.offset = 1000,1000
20 = IMAGE
20.file = GIFBUILDER
20.file {
XY = 20,10
backColor.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color
}
20.offset = 0,0
}
lib.secnav.1.RO < lib.secnav.1.NO
lib.secnav.1.RO = 1
lib.secnav.1.RO {
20.file.backColor.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color2
100.fontColor = #F69C08
110.fontColor = #3F5988
120.fontColor = #B98B3E
130.fontColor = #798F39
101.fontColor = #F69C08
111.fontColor = #3F5988
121.fontColor = #B98B3E
131.fontColor = #798F39
}
lib.secnav.1.ACT < lib.secnav.1.NO
lib.secnav.1.ACT = 1
lib.secnav.1.ACT {
20.file.backColor.field =
tx_aicommhbssecnavcolorchanger_hbs_secnav_color2
100.fontColor = #F69C08
110.fontColor = #3F5988
120.fontColor = #B98B3E
130.fontColor = #798F39
101.fontColor = #F69C08
111.fontColor = #3F5988
121.fontColor = #B98B3E
131.fontColor = #798F39
}
lib.secnav.2 = GMENU
lib.secnav.2.wrap = |<img style="background-color: #ffffff" src="/fileadmin/img/trans.gif" width="20" height="20" border="0" alt="" /> lib.secnav.2.NO < lib.secnav.1.NO
lib.secnav.2.NO {
XY = 195,17 + [13.h]
10.offset = 41,9
20 >
}
falls nochmal wer nach einer solchen lösung sucht... geht es auch ein wenig kürzer::
#414858