Select and show multiple images from typoscript

by Andrei Eftimie

If you need to output some images from a regular tt_content field (where all images are stored inside the same field, comma-separated, just use the split command.

This example shows all images from a designated page. (from Images, or Text with Images)

Typoscript:


temp.gallery = CONTENT
temp.gallery {
  table = tt_content
  select {
    pidInList = 17
    orderBy = sorting
  }
  renderObj = COA
  renderObj {
    10 = TEXT
    10 {
      field = image
      split {
        token = ,
        cObjNum = 1
        1 {
          10 = IMAGE
          10.file.import.current = 1
          10.file.import = uploads/pics/
        }
      }
    }
  }
}