[TYPO3-english] dynamic and calculated maxW for image

Katja Lampela katja.lampela at lieska.net
Thu Apr 25 19:31:21 CEST 2013


I'm trying to fix IE problems of background image scaling by creating new image for it and adding a maxW (from a field) and addin 200 (prioriCalc). This doesn't work:

         10 = IMG_RESOURCE
         10 {
             file.import = uploads/tx_backgroundimage4ce/
             file.import.field = tx_backgroundimage4ce_image
             file.params = -colorspace RGB
             file.import.listNum = 0
             file.maxW.field = tx_backgroundimage4ce_size
             file.maxW.stdWrap.wrap = |+200
             file.maxW.prioriCalc = 1
             stdWrap.wrap = background-image: url(|);

This gets the image width right from the field tx_backgroundimage4ce_size, but doesn't add 200 px to it's width.

Any advice very much appreciated :)

With kind regards

Katja Lampela

More information about the TYPO3-english mailing list