Skip to content

Instantly share code, notes, and snippets.

@magicHatOfTYPO3
Last active July 19, 2016 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save magicHatOfTYPO3/ee90f40b417e090dfdc7f3d1575806a7 to your computer and use it in GitHub Desktop.
Save magicHatOfTYPO3/ee90f40b417e090dfdc7f3d1575806a7 to your computer and use it in GitHub Desktop.
render images in TYPO3 7.6 using TypoScript and File Abstraction Layer in Text/Media Content Element
lib.startPageOwlSliderContent = CONTENT
lib.startPageOwlSliderContent {
wrap = |
table = tt_content
select {
languageField = sys_language_uid
where = colPos = 1
orderBy = sorting
pidInList = {$pageSliderContentPageID}
}
renderObj = COA
renderObj{
wrap = <div class="slider-item">|</div>
10 = FILES
10 {
references {
table = tt_content
uid.data = uid
fieldName = assets
}
renderObj = IMAGE
renderObj {
wrap = <div class="slider-item-image">|</div>
file.import.data = file:current:originalUid
file.width = 1920c
file.height = 600c
}
}
20 = TEXT
20.wrap = <div class="slider-item-text">|</div>
20.field = bodytext
}
}
@rubiomaira
Copy link

hola

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