我想通過TypoScript讀取內容並通過自定義Fluid模板呈現它。沒有css_styled_content或fluid_styled_content。將內容從TypoScript傳遞到TYPO3中的流體模板7.6
temp.test = CONTENT
temp.test {
table = tt_content
select.languageField = 1
select.selectFields = bodytext,image,header,header_link
select.where = colPos = 1
renderObj = FLUIDTEMPLATE
renderObj {
file = path/to/Teaser.html
}
}
這也適用於字符串,說
<f:debug>{data.header}</f:debug>
但不能與
<f:debug>{data.image}</f:debug>
只返回圖像的數量。
現在,在一個典型的TypoScript RenderObj(也許COA),你會補上一句
10 = FILES
10 {
required = 1
references {
table = tt_content
fieldName = image
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:originalUid // file:current:uid
file.width=654
file.height = 327c
//stdWrap.typolink.parameter.data = file:current:link
altText.data = file:current:description // file:current:title // file:current:alternative
}
}
雖然現在,我們要做的是,在流體模板。但如何解決FAL圖像將其傳遞給流體模板?
哇,非常感謝,我在哪裏可以找到? – Urs
啊,在這裏! https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Fluidtemplate/Index.html – Urs