Eine oder zwei Spalten, je nach Inhalt
Das TypoScript ermöglicht zwei verschiedene Templates einzubinden, je nachdem, ob in der rechten Spalte Inhalt vorhanden ist oder nicht. Somit muss man in so einem einfachen Fall den Redakteur nicht mit einer Template-Auswahl belasten (Schulungsaufwand!).
Die beiden html-Templates sind Beispiel-Einstellungen. Natürlich könnte man auch einfach nur ein anderes css einbinden oder in einem der beiden Fälle mit einem kleinen Zusatz-css Angaben aus dem Standard-css überschreiben.
temp.maintemplate= COA
temp.maintemplate {
10 = COA
10 {
if.isTrue.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/template-2spalten.html
}
}
20 = COA
20 {
if.isFalse.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/template-1spalte.html
}
}
}
temp.maintemplate {
10 = COA
10 {
if.isTrue.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/template-2spalten.html
}
}
20 = COA
20 {
if.isFalse.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/template-1spalte.html
}
}
}