[TYPO3-german] tt_content: Image als Background
Basti Baumann
sb at typo3erweiterungen.de
Tue Oct 11 12:38:20 CEST 2011
Hi,
ok so weit so gut.
Nur leider bekomme ich das nicht gebacken:
20 = IMG_RESOURCE
20.value = field:tx_imagetext_case
20.if {
value.field = tx_imagetext_case
equals = 1
}
20.wrap = <div style="background-image: url('|') repeat-no; width:
393px; height: 156px;">
20.file = GIFBUILDER
20.file{
XY = 383, 156
10 = IMAGE
10.file {
import=uploads/imagetext/
import.field=tx_imagetext_image
import.listNum=0
width.field=imagewidth
file.maxW = 792
}
20 = TEXT
20.wrap = sfsdf|</div>
Wäre das so richtig? Weil jetzt gibt er mir das Hintergrund mehrfach aus.
Grüße
Basti
Am 11.10.2011 11:05, schrieb Petra Arentzen:
> 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.
>
More information about the TYPO3-german
mailing list