Last active
August 29, 2015 14:00
-
-
Save michelalbers/11176403 to your computer and use it in GitHub Desktop.
Render Multiple Images of a tt_content Element via FAL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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