Du meinst, dass ein Redakteur die Möglichkeit erhält, verschiedene Farben zu selektieren/einzugeben?
Klar, mit T3 ist (fast) nichts unmöglich. Je nach Fall musst Du dazu eine Extension erstellen bzw. eine bestehende modifizieren. Dann geht auch das.
In meinem Fall habe ich die Farbwerte als Konstante mit optionSplit definiert und durchlaufe diese dann in Abhängigkeit der PID.
Schaut dann so aus:
[PIDinRootline = 76]
temp.30 = BOX
temp.30.dimensions = 1,1,4,25
temp.30.color = #F51E30
temp.31 = BOX
temp.31.dimensions = 6,1,4,25
temp.31.color = #F51E30
temp.32 = BOX
temp.32.dimensions = 11,1,167,35
temp.32.color = #F51E30
temp.33 = TEXT
temp.33.text.field = title
temp.33.text.case = upper
temp.33.fontSize = 11
temp.33.textMaxLength = 30
temp.33.fontFile = t3lib/fonts/arialbd.ttf
temp.33.fontColor = #000000
temp.33.offset = 12,21
temp.33.align = left
temp.33.antiAlias = 0
temp.34 = TEXT
temp.34.text.field = title
temp.34.text.case = upper
temp.34.fontSize = 11
temp.34.textMaxLength = 30
temp.34.fontFile = t3lib/fonts/arialbd.ttf
temp.34.fontColor = #000000
temp.34.offset = 18,17
temp.34.align = left
temp.34.antiAlias = 0
temp.35 = TEXT
temp.35.text.field = title
temp.35.fontSize = 11
temp.35.textMaxLength = 30
temp.35.fontFile = t3lib/fonts/arial.ttf
temp.35.fontColor = #000000
temp.35.offset = 18,17
temp.35.align = left
temp.35.antiAlias = 0
[global]
Das ist das erw. Template, im übergeordneten schauts so aus:
# Sekundärnavigation umschalten, wenn auf Startseite
[treeLevel = 0]
temp.20 = HMENU
temp.20.special = list
temp.20.special.value = 76,75,74,73,72,71
temp.20.1 = GMENU
temp.20.1 {
expAll = 0
NO {
wrap = | <br>
XY = 174,36
backColor = #D3DCEA
10 = BOX
10.dimensions = 1,1,4,35
10.color = #F51E30||#EE9530||#FFF200||#00B99B||#008DD6||#641E88
15 = BOX
15.dimensions = 6,1,167,35
15.color = #B7C6DD
20 = TEXT
20.text.field = title
20.fontSize = 11
20.textMaxLength = 30
20.fontFile = t3lib/fonts/arial.ttf
20.fontColor = #000000
20.offset = 12,21
20.align = left
20.antiAlias = 0
}
RO < .NO
RO = 1
RO {
15.color = #F51E30||#EE9530||#FFF200||#00B99B||#008DD6||#641E88
}
ACT < .NO
ACT = 1
ACT {
15.color = #F51E30||#EE9530||#FFF200||#00B99B||#008DD6||#641E88
}
}
temp.20.2 = GMENU
temp.20.2 {
expAll = 0
NO {
wrap = | <br>
XY = 174,26
backColor = #D3DCEA
10 = BOX
10.dimensions = 1,1,4,25
10.color = #9BB0D0
13 = BOX
13.dimensions = 6,1,4,25
13.color = #9BB0D0
15 = BOX
15.dimensions = 11,1,167,35
15.color = #9BB0D0
20 = TEXT
20.text.field = title
20.fontSize = 11
20.textMaxLength = 30
20.fontFile = t3lib/fonts/arial.ttf
20.fontColor = #000000
20.offset = 18,17
20.align = left
20.antiAlias = 0
}
RO < .NO
RO = 1
RO {
15.color = #D3DCEA
}
}
[else]
...
...
...
#Zweite Ebene, Dritte, etc.
[global]