Typo3 GIFBUILDER für Header

tsluga

Grünschnabel
Hallo !

Ich komme irgendwie nicht weiter !

Ich möchte aus dem Inhalt vom Header Field ( Textelement ) ein Bild erstellen lassen per Gifbuider.Ich habe dafür folgenden Code :

Code:
lib.stdheader.10 {
 
    #headline layout1
	1 = IMAGE
	1 {
		alttext.field = header // subheader
		titleText.field = header // subheader
		wrap = |
		file = GIFBUILDER
		file {
			backColor = #FFFFFF
			transparentBackground = 1
 
			// FAKE for setting the XY
			// Abstand nach Headline ist bei 2 zeiliger Headline anders als bei einzeiliger. Dafºr dieser Weg.
			XY = [10.w]+10,[1.h]+[2.h]+[3.h]+[4.h]
 
			1 = TEXT
			1{
				#ANPASSEN fontSize fºr abstand nach headline
				fontSize = 63
				fontFile = fileadmin/x_media/fonts/Frutiger_Bold_Regular.ttf
				text.current = 1
 
				text.listNum.splitChar = |
				text.listNum = 0
				offset= -200,-200
			}
 
			2 < .1
			2.text.listNum=1
 
			3 < .1
			3.text.listNum=2
			4 < .1
			4.text.listNum=3
 
 
			// and here real text which appears
			10 = TEXT
			10{
				fontSize = 40
				fontFile = fileadmin/x_media/fonts/Frutiger_Bold_Regular.ttf
				#fontColor = #161616
				fontColor = #919191
				#niceText = 1
 
				text.field = header
				text.current = 1				
				text.listNum.splitChar = |
				text.listNum = 0
				offset=0,40
			}
			20 < .10
			20.text.listNum=1
			#ANPASSEN letzter wert §ndert den zeilenabstand
			20.offset=0,18+[10.h]+35
			30 < .10
			30.text.listNum=2
			30.offset=0,18+[10.h]+[20.h]+49
			40 < .10
			40.text.listNum=3
			40.offset=0,18+[10.h]+[20.h]+[30.h]+66
 
			50 = SCALE
			50 {
				width = [10.w]+10/2+5
				height = [1.h]+[2.h]+[3.h]+[4.h]/2+5
			}
		}
	}
	2 < .1
	5 < .1
}

Alles klappt wunderbar, wenn der Inhalt eine Zeile lang ist. Beinhaltet der Inhalt aber Text über zwei Zeilen, so ist der Abstand nach unten zu groß. Ich komme nicht drauf, wieso. Ideen ?
 
Zurück