Hi,

verwende IMG_RESOURCE statt IMAGE, dann bekommst du nur den Pfad zum Bild. 
Diesen kannst du dann im style-Attribut des entsprechenden Containers verwenden.

Viele Grüße

Petra

Am 11.10.2011 um 10:50 schrieb Basti Baumann:

> 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
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
> 

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an