-
-
Save rubiomaira/743784f30935ba64b2caa716b3193475 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
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
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment