[TYPO3-ttnews] Render news image as css background image

Sacha Vorbeck vorbeck at TYPO3Tutor.de
Thu Sep 16 02:38:16 CEST 2010


On 16.09.2010 02:17, Sacha Vorbeck wrote:
> Hi,
>
> I`d like to display the images in a news list view as CSS-background
> images like this:
> <div style="background: url('image.jpg';)">
> <h1>Title</h1>
> <h2>Subheader</h2>
> </div>

got it:

	displayList {
	 	content_stdWrap.postUserFunc = tx_pmkhtmlcrop->htmlCrop
	 	content_stdWrap.cropHtml = 300 | ... | 1
	 	content_stdWrap.parseFunc < lib.parseFunc_RTE
	 	image >
	 	image.stdWrap.cObject = IMG_RESOURCE
		image.stdWrap.cObject {
			file {
				import.field = image
				import = uploads/pics/
				listNum = 0
				maxW = 303
				maxH = 215
			}
		}
	}

thanks for listening ;-).

-- 
Ciao,
Sacha


More information about the TYPO3-project-tt-news mailing list