---
title: "Grafischer Titel auf zwei Zeilen ausgeben"
url: "https://www.typo3.net/d/25915-grafischer-titel-auf-zwei-zeilen-ausgeben"
source: "typo3.net"
tags: ["Allgemein","Bilder","Frage"]
created: "2005-06-14"
last_reply: "2005-06-14"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Grafischer Titel auf zwei Zeilen ausgeben

Allgemein · 2 Antworten · gestartet 2005-06-14

## Eröffnungsbeitrag

**othersite** · 2005-06-14 · [Beitrag #1](https://www.typo3.net/d/25915-grafischer-titel-auf-zwei-zeilen-ausgeben/1)

Hallo

Das Problem ist, dass ich keine zweizeiligen Grafiken erstellen kann. Dachte mit dem '|' würde der Text auf die zweite Zeile kommen. Macht er jedoch nicht.

Habe das Layout 5 wie folgt angepasst / Setup:

### layout 5 graphic header ###################
styles.header.gfx1 >
styles.header.gfx1 = IMAGE
styles.header.gfx1 {
  wrap = {$styles.header.gfx1.wrap}
  alttext.current = 0
  file = GIFBUILDER
  file {
    XY = [10.w]+10 ,{$styles.header.gfx1.itemH}
    maxWidth = {$styles.header.gfx1.maxWidth}
    backColor = {$styles.header.gfx1.bgCol}
    reduceColors = {$styles.header.gfx1.reduceColors}
    10 = TEXT
    10 {
      text.current = 1
      text.crop = {$styles.header.gfx1.maxChars}
      fontSize = {$styles.header.gfx1.fontSize}
      fontFile = {$styles.header.gfx1.file.fontFile}
      fontColor = {$styles.header.gfx1.fontColor}
      offset = {$styles.header.gfx1.fontOffset}
      niceText = {$styles.header.gfx1.niceText}
      #text.listNum = 0
text.listNum.splitChar = |

}
  }
}

####################################

z.B. Input beim Titelfeld: Bla bla bla | neu bla

sollte sein:
Bla bla bla
neu bla

Kann mir jemand dabei helfen?? Danke!!

## Antworten

### [#2](https://www.typo3.net/d/25915-grafischer-titel-auf-zwei-zeilen-ausgeben/2) · Moeffz · 2005-06-14

Was ist denn überhaupt die Ausgabe bei Dir?

Ich würde vermuten, dass fehlt, wo es weiter geht.
[/d/5839-gmenu-oder-gifbuilder-zweizeilige-texte-aber-wie](https://www.typo3.net/d/5839-gmenu-oder-gifbuilder-zweizeilige-texte-aber-wie)

### [#3](https://www.typo3.net/d/25915-grafischer-titel-auf-zwei-zeilen-ausgeben/3) · othersite · 2005-06-14

Also nochmals von vorne:

**Ich will das alle Header mit Layout Nr. 5 automatisch als Grafik ausgegeben werden - auch mehrzeilig.** Das problem ist jedoch mit mehrzeiilgen Titeln, diese 'brechen' nicht beim gewählten Sonderzeichen. Mir scheint, als das der gesamte Teil im Setup ignoriert wird.

Ich bin Anfänger und blicke da echt nicht mehr durch!

Dafür habe ich auf Typo3.org folgendes gefunden, das scheint jedoch nicht so zu funktionieren. :

conf:
---
########### neue version typo3.org ##########
styles.header.gfx1 >
styles.header.gfx1 {
    # cat=content/cHeader_g/h5; type=color; label=Header "Layout5", Backgr. color: Color of the background of the header-items. This should be the same as the page background color.
  bgCol = white

# cat=content/cHeader_g/h5; type=file[ttf]; label=Header "Layout5", Font file: TrueType (ttf) font
  file.fontFile = fileadmin/templates/Univers_Condensed.ttf
    # cat=content/cHeader_g/h5; type=int[1-40]; label=Header "Layout5", Font size: Font size of the TrueType font
  fontSize = 16
    # cat=content/cHeader_g/h5; type=color; label=Header "Layout5", Font color: Font color of the TrueType font
  fontColor = #1F5982
    # cat=content/cHeader_g/h5; type=offset; label=Header "Layout5", Font offset: Enter the offset of the text from the upper-left corner on the header items
  fontOffset = 0,12
    # cat=content/cHeader_g/h5; type=boolean; label=Header "Layout5", Nicetext: If the text is jagged on the edges, you may try to eliminate it with this option. But it will also slow down the rendering process.
  niceText = 0

# cat=content/cHeader_g/h5; type=int[1-200]; label=Header "Layout5", height: Height (pixels) of the header-items
  itemH = 30
    # cat=content/cHeader_g/h5; type=int+; label=Header "Layout5", Max width: Maximum width (pixels) of the header-items. Use this to ensure that the headers will never get wider than your page design for the content allows. Use the same value as for "Max Image Width".
  maxWidth = 400
    # cat=content/cHeader_g/h5; type=int+; label=Header "Layout5", Max chars: Maximum number of text characters allowed in the header items. Use this as a way to limit the physical width of the headers. Similar in concept to ".maxWidth"
  maxChars = 0

# cat=content/cHeader_g/h5; type=int[1-256]; label=Header "Layout5", Reduce colors: Number of indexed colors on header items. If your headers end up with weird colors, you can try to enter a higher number of colors. But the graphics-files will also increase their filesize.
  reduceColors = 16
    # cat=content/cHeader_g/h5; type=wrap; label=Header "Layout5", Wrap: Wrap HTML-code for the header item
  wrap = |
}
---

und für das Setup:
---
### layout 5 graphic header ###################
styles.header.gfx1 >
styles.header.gfx1 = IMAGE
styles.header.gfx1 {
  wrap = {$styles.header.gfx1.wrap}
  alttext.current = 0
  file = GIFBUILDER
  file {
    XY = [10.w]+10 ,{$styles.header.gfx1.itemH}
    maxWidth = {$styles.header.gfx1.maxWidth}
    backColor = {$styles.header.gfx1.bgCol}
    reduceColors = {$styles.header.gfx1.reduceColors}
    10 = TEXT
    10 {
      text.crop = {$styles.header.gfx1.maxChars}
      fontSize = {$styles.header.gfx1.fontSize}
      fontFile = {$styles.header.gfx1.file.fontFile}
      fontColor = {$styles.header.gfx1.fontColor}
      offset = {$styles.header.gfx1.fontOffset}
      niceText = {$styles.header.gfx1.niceText}

}

}

}

####################################
---

---

Quelle: „Grafischer Titel auf zwei Zeilen ausgeben“, typo3.net, https://www.typo3.net/d/25915-grafischer-titel-auf-zwei-zeilen-ausgeben
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
