[TYPO3-english] how do you render a tt_content image in TYPO3 6.1

Muriel le Pair typo3 at strangefruit.nl
Mon Mar 24 14:44:41 CET 2014


Hi,

I would like to output the first image of the current page in the border 
column.

I tried the following, but this will output the first image of the page..

temp.headerimg = CONTENT
temp.headerimg {

   table = tt_content

   select {
     selectFields = header,image
     where = colPos=3
     pidInList.field = uid
     max = 1
   }

   renderObj = COA
   renderObj {

     # img
     10 = IMAGE
     10 {
       required = 1
       file {
         treatIdAsReference = 1
         import = uploads/pics/
         import {
           field = image
           listNum = 0
         }
       }
     }
   }
}

So how do you render a tt_content image in TYPO3 6.1?

--
kind regards,

Muriel le Pair


More information about the TYPO3-english mailing list