Last active
July 19, 2016 21:09
-
-
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
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
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
hola