[TYPO3-english] Fluid: content rendered twice
Paul Garais
garais at amadeo-marketing.de
Wed Apr 27 16:26:47 CEST 2016
Am 27.04.2016 um 16:15 schrieb TSniper:
> Quote: ondro (gondro) wrote on Wed, 27 April 2016 16:11
> ----------------------------------------------------
>> Hmm now I'm little confused where did you put ts?
> ----------------------------------------------------
> I put :
> ....
> 10 = FLUIDTEMPLATE
> 10 {
> variables {
> lib.myCol < styles.content.get
> ........
This example should give you the direction:
#
# TS Setup
# Loading Template
10 = FLUIDTEMPLATE
10 {
file = fileadmin/templates/index.html
layoutRoootPath = fileadmin/templates/layouts/
partialRootPath = fileadmin/templates/partials/
variables {
layout = TEXT
layout.data = levelfield:-1, backend_layout_next_level, slide
layout.override.field = backend_layout
}
}
# Putting content into place
lib.mainContent < styles.content.get
lib.mainContent.select.where = colPos = 1
#
#
# addition in template-file (like the above index.html in fileadmin/templates):
<f:cObject typoscriptObjectPath="lib.mainContent" />
More information about the TYPO3-english
mailing list