Hallo Jana, danke, dass habe ich auch gerade gefunden:
backColor.stdWrap.cObject < plugin.tx_dyncss.overrides.inputColor1 das ist doch ein guter Start in den Tag ;) Grüße Kay Am 17.12.2012 09:09, schrieb Jana Golinowski: > Hallo Kay, > > ich hatte neulich etwas Ähnliches. Pack deine Farbauswahl in > backColor.stdWrap.cObject. Bei meinem Projekt habe ich so in > Abhängigkeit vom layout-Feld der Seite die Farbe eingestellt. > > Grüße, Jana. > > > Am 16.12.2012 23:24, schrieb Kay Strobach: >> Hallo zusammen, >> >> ich muss aus einer SW Grafik dynamisch ein Logo in anderen Farben >> rendern. >> >> Das geht soweit mit dem folgenden TS: >> >>> rahmenBoxLogo = IMG_RESOURCE >>> rahmenBoxLogo { >>> stdWrap.wrap = url("|") >>> file = GIFBUILDER >>> file { >>> XY = [20.w],[20.h] >>> 20 = IMAGE >>> 20.file = GIFBUILDER >>> 20.file { >>> XY = 128,22 >>> backColor = red >>> } >>> 20.mask = >>> EXT:skin_sbs_cd_redsys/css/colors/less/images/logo_sbs_typo3_sw.png >>> } >>> } >> >> In dem Beispiel wird die Farbe (red) als String angegeben, das geht auch >> mit einer TSConst relativ einfach, dummerweise bekomme ich die Farbe >> aber aus einem String, der wie folgt aussieht : farbe1|farbe2 >> >> Auch das läßt sich mit TS auslesen: >> >>> inputColor1 = TEXT >>> inputColor1 { >>> value = {$lessColorScheme} >>> split { >>> token.char = 124 >>> cObjNum = 1|*|2 >>> 1.current = 1 >>> } >>> } >> >> >> >> Dummerweise kann ich statt = red nicht einfach< inputColor1 schreiben, >> was für ein Objekttyp ist backColor, wie bekomme ich das Ergebnis eines >> cObj in backColor ;), oder muss ich doch nochmal die Struktur ändern und >> jede Farbe einzeln ablegen :( >> >> Danke schonmal >> >> Grüße >> Kay > -- http://www.kay-strobach.de - Open Source Rocks TYPO3 .... inspiring people to share! Get involved: http://typo3.org Answer was useful - feel free to donate: - https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2 - https://flattr.com/profile/kaystrobach _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german