Last active
December 17, 2015 05:38
-
-
Save josefglatz/5559033 to your computer and use it in GitHub Desktop.
Task: have all images from pages media field listed in TypoScript, for example to use in a slideshow. (Compatible only with >= TYPO3 6-0)
This file contains 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
## list images from pages:media in TypoScript using FAL and crop it automatically | |
lib.View.Keyvisual = FILES | |
lib.View.Keyvisual { | |
references { | |
data = levelmedia:-1, slide | |
} | |
renderObj = COA | |
renderObj { | |
10 = IMAGE | |
10 { | |
file.import.data = file:current:publicUrl | |
file { | |
width = 1001c | |
height = 207c | |
} | |
altText.data = field : title | |
emptyTitleHandling = keepEmpty | |
} | |
wrap = <li>|</li> | |
required = 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment