[TYPO3-templavoila] Flexible Content Element: BE user changes BG image

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Tue Feb 27 20:23:21 CET 2007


Daniela Waranie wrote:
> i defined a unmapped field in TemplaViol� (when creating a flexible content 
> element).
> This field  for selecting a background image in backend by a writer.
> How do i force this image setting to the style attribute of a <div>-tag?
> The target <div>-tag is the root for this flexible content element.
> How does the TypoScript look like?

Map it to the style attribute. TV will create TS inside DS for this 
image as IMG_RESOURCE. You need to add one of wrap properties (see 
TSRef) to wrap it something like "background-image: url(|)".

Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)

More information about the TYPO3-project-templavoila mailing list