[TYPO3-german] tt_content: Image als Background

Basti Baumann sb at typo3erweiterungen.de
Tue Oct 11 10:50:45 CEST 2011


Moin,

ich bastele gerade an einer Erweiterung für tt_content.
Ich kann dabei schon beliebigen Text in ein neues Bild rendern:
	content = COA
	content{
		10 = IMAGE
		10.file = GIFBUILDER
		10.value = field:tx_imagetext_case
		10.if {
			value.field = tx_imagetext_case
			equals = 0
		}
		10.file{
			XY = 792, 210
			10 = IMAGE
			10.file {
			import=uploads/imagetext/
			import.field=tx_imagetext_image
			import.listNum=0
			width.field=imagewidth
			file.maxW = 792
			}
			# Überschrift rendern
			20 = TEXT
			20.text.data = field:header
			20.fontSize = 18
			20.fontFile = fileadmin/fonts/lte50267.PFB
			20.fontColor = #ffffff
			20.offset = 500, 40
			20.antiAlias=0
			20.breakWidth = 100
			20.breakSpace = 1.5
			# Bodytext rendern
			30 = TEXT
			30.text.data = field:tx_imagetext_text
			30.fontSize = 15
			30.fontFile = fileadmin/fonts/lte50266.ttf
			30.fontColor = #ffffff
			30.offset = 500, 60
			30.doNotStripHTML = 0
			30.nicetext=1
			30.breakWidth = 280
			30.breakSpace = 1.2		
			}
		10.stdWrap.typolink.parameter.field = tx_imagetext_link
		10.alttext.field = tx_imagetext_text
		10.titletext.field = tx_imagetext_text
}

Nun will ich aber, dass das hochgeladene Bild als Backgroundbild 
fungiert. Nur wie mache ich das bzw. wie muss ich meinen Code umbauen?

Grüße
Basti


More information about the TYPO3-german mailing list