[TYPO3-english] dynamic backround image from Template/Constants
Katja Lampela
katja.lampela at lieska.net
Wed Aug 31 11:02:52 CEST 2011
Hi,
I'm searching a way to change the background image with Template/Constants.
This is my not-working ts for Constants field:
-----------
# cat=layout/file/a; type=file [IMAGE_EXT]; label=Background image.
bodybgpic =
-----------
and Setup field:
-----------
temp.pic = IMAGE
temp.pic {
file = GIFBUILDER
file.XY = [10.w],[10.h]
file.10 = IMAGE
file.10 {
file = {$bodybgpic}
}
}
page.headerData.3 = TEXT
page.headerData.3.value = <style type="text/css">body {background-image: url('
page.headerData.4 = IMG_RESOURCE
page.headerData.4.file < temp.pic
page.headerData.5 = TEXT
page.headerData.5.value = '); } </style>
------------
But it's not working, the result is:
<style type="text/css">body {background-image: url(''); } </style>
--
With kind regards
Katja Lampela
*Lieska-tuotanto*
www.lieska.net
More information about the TYPO3-english
mailing list