Skip to content

Instantly share code, notes, and snippets.

@josefglatz
Last active December 17, 2015 05:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefglatz/5559033 to your computer and use it in GitHub Desktop.
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)
## 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