[TYPO3] Make dynamic header image a background image

Brian Bendtsen nightowl at galnet.dk
Fri Dec 1 10:34:12 CET 2006


Hi

On one of my sites I have a dynamic header image made with TV and 
typoscript like this:

#Header Image
lib.topimage = IMAGE
lib.topimage {

# Default image if no image is inserted on the page
   file = fileadmin/templates/topimages/headerImage3.jpg
   file.import.data = levelmedia: -1, "slide"

# Folder to upload the userdefined images to
   file.import = fileadmin/templates/topimages/
   file.import.listNum = 0
   file.import.override.field = media
}

The code generated is:

<div id="grafik-logo">
  <img src="fileadmin/templates/topimages/headerImage3.jpg" width="804" 
height="227" border="0" alt="" title="" />
</div>

Is there any way to make the headerimage a background image in stead?

<div id="grafik-logo" 
background="fileadmin/templates/topimages/headerImage3.jpg">
</div>

/Brian Bendtsen


More information about the TYPO3-english mailing list