[TYPO3-german] Re: Multiple Fluid Template for single Site
Hemantha Wijesinghe
hwijesinghe at hotmail.com
Mon Oct 13 04:19:14 CEST 2014
page{
10 = FLUIDTEMPLATE
10{
file = fileadmin/templates/index.html
format = html
layoutRootPath = fileadmin/templates/layouts/
partialsRootPath = fileadmin/templates/partials/
variables{
//content < styles.content.get
// content_left < styles.content.get
// content_left.select.where = colPos = 1 // #column position - 0-normal, 1-left, 2-right, 3-border
# get content elements in colPos 0-3
content0 < styles.content.get
content1 < styles.content.getLeft
content2 < styles.content.getRight
content3 < styles.content.getBorder
content3.select.where = colPos = 4
content3.renderObj.stdWrap.wrap = <div class="col-md-4">|</div>
content3.stdWrap.innerWrap.cObject.default.if {
value = div
equals.field = CType
negate = 1
}
//tt_content.text.20.wrap = <div class="added_through_rte"> | </div>
# get colPos 4 & 5
content4 < styles.content.get
content4.select.where = colPos = 5
content4.renderObj.stdWrap.wrap = <div class="col-md-6">|</div>
//content5 < styles.content.get
//content5.select.where = colPos=5
}
settings {
# Get the copyright year from a TypoScript constant.
copyrightYear = 2014
}
}
}
//Assign the Template files with the Fluid Backend-Template
page.10.file.stdWrap.cObject = CASE
page.10.file.stdWrap.cObject {
key.data = levelfield:-1, backend_layout_next_level, slide
key.override.field = backend_layout
# Set the default Template, our single column Template
default = TEXT
default.value = fileadmin/templates/index.html
# First level template for country level data display
country = TEXT
country.value = fileadmin/templates/countrytype.html
# Set also the first [2] Template, our multi column and multi rows Template
2 = TEXT
2.value = fileadmin/templates/fullsize.html
# Set a second [3] Template, our 3 column Template
3 = TEXT
3.value = fileadmin/templates/threecolumn.html
}
Ich muss countytype.html Vorlage für die zweite Ebene der Seiten beispielsweise "page3 sub pages in image " verwenden Wie kann ich schreiben TS für dieses Szenario witout mit Erweiterung
More information about the TYPO3-german
mailing list