Select and show multiple images from typoscript


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.my_content = CONTENT
temp.my_content {

     table = tt_content
     select {
          pidInList = 17
          orderBy = sorting
     }

     renderObj = COA
     renderObj {
          10 = TEXT
          10 {
               field = image_filed
               split {
                    token = ,
                    cObjNum = 1
                    1 {
                         10 = IMAGE
                         10.file.import.current = 1
                         10.file.import = uploads/pics/
                    }
               }
          }
     }
}

Advertisements

2 thoughts on “Select and show multiple images from typoscript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s