Feature #14970
closedstdWrap for fontColor attribute of GIFBUILDER´s TEXT-object, is it planned for future?
0%
Description
I miss a stdWrap for the fontColor Attribute of the TEXT-object in GIFBUILDER. It works fine to choose the value of backColor through a db-field with
backColor.field = tx_extkey_color
But there is no way for me to choose the color of GMENU Text this way.
Even with conditions its not really possible to set each menu-item´s text to the color of its underlying page.
After searching hours and hours i tried following but without satisfying result:
[globalVar = TSFE:page|tx_extkey_color=#FFE48D]
lib.secnav.1.RO.10.fontColor = #FFE48D
lib.secnav.1.ACT.10.fontColor = #FFE48D
[global]
[globalVar = TSFE:page|tx_extkey_color=#C9EAFB]
lib.secnav.1.RO.10.fontColor = #C9EAFB
lib.secnav.1.ACT.10.fontColor = #C9EAFB
[global]
becuase of the TSFE:page, all menu items get the color of the current page but not the color of their underlying pages :-(
Please help
(issue imported from #M1453)
Files
Updated by Andreas Bruckmeier about 19 years ago
just after posting here i found a solution. But still i think a stdWrap would be nicer ;-)
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 >
}
Updated by Sebastian Kurfuerst about 19 years ago
the attached patch fixes the issue. greets, sebastian
DOCUMENTATION UPDATE needed.
Updated by Sebastian Kurfuerst about 19 years ago
DOCUMENTATION TSREF:
type change:
section GIFBUILDER: TEXT:
fontColor:
GraphicColor / stdWrap