Hallo,
wie bereits im Betreff angegeben versuche ich mich derzeit an einer Lösung für 3 verschiedene Templates die je nach Spaltenbelegung aufgeerufen werdne. Allerdings funktioniert das ganze leider noch nicht so wie es soll. Im Moment wird nur die erste bedingung ausgegeben.
Hoffe mir kann hier wer helfen!
Hier mal mein TS
if
{
isTrue.numRows < styles.content.getBorder {
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/2-3col/3col.html
<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/tscript/template_marker.ts" >
}
}
isFalse.numRows < styles.content.getBorder {
if {
isTrue.numRows < styles.content.getLeft {
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/2-3col/1col.html
<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/tscript/template_marker.ts" >
}
}
isFalse.numRows < styles.content.getLeft {
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/2-3col/2col.html
<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/tscript/template_marker.ts" >
}
}
}
}
}