[TYPO3-german] Text als Grafik in zwei Zeilen

Andreas Albers albers at prodas.de
Wed Jun 20 21:24:30 CEST 2007


Hi,

folgendes TS erzeugt eine Grafik 

temp.leftimage = IMAGE
temp.leftimage {
  file = GIFBUILDER
  file {
  backColor = white
  XY = 200,465
  15 = TEXT
  15{    
    text.field = title
    text.listNum.splitChar= 32
    text.listNum=0
    
    align = right
    niceText = 1
    fontSize = 30
    offset = -165,10
    fontFile = fileadmin/_temp_/bilder/ariblk.ttf
    fontColor = #F0F0F0
    angle = 90    
  }
  
 
  20 < .15
  
  20.text.listNum = last
  20.offset=-165+[15.w]+6,10
#  20.if{
#    emty.field = 
#    negate = 1
#    }
  }
}

Der Subtitle wird gesplittet beim Leerzeichen.
Folgende Subtitle Möglichkeiten gibt es:
a Einwort
b Zwei Worte
c Zwei / Worte 

Mit 20.text.listNum = last wird das letzte Element dargestellt. 
Wenn subtitle aber nur aus einem Wort besteht wird das Wort in der ersten
und zweiten Zeile dargestellt.

Wie muss ich die 20.if Bedingung formulieren um das gewünschte Ergebnis zu
erreichen.

Gruss
Andreas




More information about the TYPO3-german mailing list