---
title: "Formatierung von statischen Text in typoScript"
url: "https://www.typo3.net/d/77126-formatierung-von-statischen-text-in-typoscript"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2008-05-12"
last_reply: "2008-05-19"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Formatierung von statischen Text in typoScript

Allgemein · 2 Antworten · gestartet 2008-05-12

## Eröffnungsbeitrag

**griebie** · 2008-05-12 · [Beitrag #1](https://www.typo3.net/d/77126-formatierung-von-statischen-text-in-typoscript/1)

Hallo,

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

```typoscript
# 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!

## Antworten

### [#2](https://www.typo3.net/d/77126-formatierung-von-statischen-text-in-typoscript/2) · just2b · 2008-05-18

gib mal das nicetext raus

georg

### [#3](https://www.typo3.net/d/77126-formatierung-von-statischen-text-in-typoscript/3) · griebie · 2008-05-19

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.

```typoscript
# 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
```

---

Quelle: „Formatierung von statischen Text in typoScript“, typo3.net, https://www.typo3.net/d/77126-formatierung-von-statischen-text-in-typoscript
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
