[TYPO3] Background images - again

Christopher Torgalson bedlamhotel at gmail.com
Fri Sep 7 09:34:09 CEST 2007


Hi,

On 9/7/07, Kristian Wind <kw at hovsa.dk> wrote:
> Hello everyone!
>
> This has been covered before, but there was no solution, as far as I
> could see.
>
> What I need is to map the field "Files:" from the advanced page
> properties into a backend style. Like this:
>
> <div id="example" style="background-image: url(fileadmin/backgrounds/
> PICTURE_GOES_HERE); background-repeat: no-repeat;"></div>
>
> How do I do that?


Simple: use IMG_RESOURCE instead of IMAGE--IMG_RESOURCE returns the
file location, not a complete img element. If you're interested in
using TS to generate CSS on-the-fly, have a look at the extension
bh_firtools.

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list