Could we help you? Please click the banners. We are young and desperately need the money
This comes very handy when you want to display an element on the website only when there is content for it. This can be done with the following typoscript code:
temp.maintemplate = COA
temp.maintemplate {
# if there is content in the right col
10 = COA
10 {
if.isTrue.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/2cols.html
}
}
# if there is NO content in the right col
20 = COA
20 {
if.isFalse.numRows < styles.content.getRight
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/1col.html
}
}
}