Zum Inhalt springen

FM-Colormenue ins CSS

Erstellt am 26. März 2008 · 1 Antwort · letzte Antwort am 26. März 2008

Tags: HTML & CSS, Frage

pdk ·

Hallo allerseits habe ein problem mit FM-Colormenue. Ich möchte das die vom Redakteur eingegebene Farbe ins CSS eingetragen wird. Habe mir das so gedacht:

temp.pagecolor.data = field:uid
temp.pagecolor.preUserFunc = tx_fmcolormenue_pi1->getColor

Und dann ins Main Template

.pagecolor{
    color: ###GLOBALCOLOR### ;
}

Das soll dann so übergeben werden:

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template =< plugin.tx_automaketemplate_pi1
  template.content.templateType = main
  workOnSubpart = DOCUMENT_BODY
  
  marks.GLOBALCOLOR < temp.pagecolor
.
.
.

Hoffe mir kann jemand helfen suche schon etwas länger danach nur im Netz steht nix.

Danke
Patrick

pdk ·

Habs doch geschafft es zu lösten. #giggle#

Hier der Code der oben in den Head in Style reingeschrieben wird

.pagecolor{
color: ###GLOBALCOLOR### ;
}

Und hier das TS

########################################################
########## Haupt TEMPLATE cObject fuer HEADER ##########
########################################################


temp.headTemplate = TEMPLATE
temp.headTemplate {
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_HEADER

  marks.GLOBALCOLOR = TEXT
  marks.GLOBALCOLOR.data = field:uid
  marks.GLOBALCOLOR.preUserFunc = tx_fmcolormenue_pi1->getColor
  ...