Skip to content

Instantly share code, notes, and snippets.

@michelalbers
Last active August 29, 2015 14:00
Show Gist options
  • Save michelalbers/11176403 to your computer and use it in GitHub Desktop.
Save michelalbers/11176403 to your computer and use it in GitHub Desktop.
Render Multiple Images of a tt_content Element via FAL
tmp.main_content = CONTENT
tmp.main_content {
table = tt_content
select {
where = colPos = 0
orderBy = sorting
languageField = sys_language_uid
}
renderObj = COA
renderObj {
1 = FILES
1 {
references {
table = tt_content
uid.data = uid
fieldName = image
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:originalUid
stdWrap.typolink.parameter.data = file:current:link
}
}
}
}
@michelalbers
Copy link
Author

file:current:originalUid can be replaced with a fieldname present for that reference. In case of image e.g.: description, title or publicUrl so it becomes: file:current:publicUrl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment