# Carousel Item # First define the carousel item cObject, we want this in the container tt_content.gridelements_pi1.20.10.setup.uebb_bootstrap_carousel_item { # item wrap, first item has active flag stdWrap { outerWrap =
|
outerWrap.override =
|
outerWrap.override.if { value = 1 equals.data = cObj:parentRecordNumber equals.prioriCalc = 1 } } columns.0 { renderObj = COA renderObj { 5 = FILES 5 { references { table = tt_content uid.field = uid fieldName = assets } renderObj = IMAGE renderObj { file.import.data = file:current:publicUrl titleText.data = file:current:title altText.data = file:current:alternative stdWrap.typolink.parameter.data = file:current:link } } } } columns.1 { wrap = renderObj = COA renderObj { # Header 10 = TEXT 10 { field = header wrap =

|

if.isTrue.field = header } 20 = TEXT 20 { field = bodytext parseFunc < lib.parseFunc_RTE } } } } # We need this to calculate the interval (s -> ms) lib.math = TEXT lib.math { current = 1 prioriCalc = 1 } # Carousel Container tt_content.gridelements_pi1.20.10.setup.uebb_bootstrap_carousel_container { cObject = FLUIDTEMPLATE cObject { file = fileadmin/layout/gridelements/bootstrap3_carousel/bootstrap3_carousel_container_template.html } columns.0 { renderObj < tt_content.gridelements_pi1 } }