Zum Inhalt springen

Formatierung von statischen Text in typoScript

Erstellt am 12. Mai 2008 · 2 Antworten · letzte Antwort am 19. Mai 2008

Tags: Frage

griebie ·

Hallo,

ich bekomme es nicht hin, eine statische Textzeile, die ein bestimmtes TTF bekommen soll, in typoScript zu schreiben. Hier mein TS dazu:

# Headerzeile schreiben
lib.stdheader.10.5 = COA
lib.stdheader.10.5 {
  10 = IMG_RESOURCE
  10.file = GIFBUILDER
  10.file {
         XY = [10.w]+700,[10.h]+30
         backColor = #eeee99
         10 = TEXT
         10 {
         fontSize = 15
         fontFile = fileadmin/templates/fonts/impact.ttf
         offset = 4,31
         fontColor = #989898
         niceText =1       
     }
  }
 10.stdWrap {
      wrap = <h5 style="background: url('|') no-repeat; overflow:visible"> 
      wrap.htmlSpecialChars = 1
      append = TEXT
      append.value = DIESER TEXT SOLL AUSGEGEBEN WERDEN</h5>

  } 
}

lib.headerzeile < lib.stdheader.10.5

Der GIFBUILDER reagiert nur auf die backColor, schreiben tut er nix. Warum? Danke vorab!

griebie ·

Wie meinst Du das? Die Stelle mit "niceText" auskommentieren im oberen Teil hat nix gebracht. Unter der append-Zeile im unteren Teil (s. TS) aber so auch nicht.

# Headerzeile schreiben
lib.stdheader.10.5 = COA
lib.stdheader.10.5 {
  10 = IMG_RESOURCE
  10.file = GIFBUILDER
  10.file {
         XY = [10.w]+700,[10.h]+30
         backColor = #eeee99
         10 = TEXT
         10 {
         fontSize = 15
         fontFile = fileadmin/templates/fonts/impact.ttf
         offset = 4,31
         fontColor = #989898
         niceText =1       
     }
  }
 10.stdWrap {
      wrap = <h5 style="background: url('|') no-repeat; overflow:visible">
      wrap.htmlSpecialChars = 1
      append = TEXT
      append.value = DIESER TEXT SOLL AUSGEGEBEN WERDEN</h5>
      niceText = 1
      }
}

lib.headerzeile < lib.stdheader.10.5