cObject TEMPLATE und verschiedene Templates einbinden

Armin Bartsch, Montag, 28. Dezember 2009

Ohne zusätzliche Extension je nach Spalten unterschiedliche Template-Files einbinden

page = PAGE page.10 = TEMPLATE page.10 { template = COA template { 10 = COA 10.if.isTrue.numRows < styles.content.getLeft 10.10 = FILE 10.10.file = fileadmin/template.html 20 = COA 20.if.isFalse.numRows < styles.content.getLeft 20.10 = FILE 20.10.file = fileadmin/template_2.html } }
  1. page = PAGE
  2. page.10 = TEMPLATE
  3. page.10 {
  4.   template = COA
  5.   template {
  6.     10 = COA
  7.     10.if.isTrue.numRows < styles.content.getLeft
  8.     10.10 = FILE
  9.     10.10.file = fileadmin/template.html
  10.     20 = COA
  11.     20.if.isFalse.numRows < styles.content.getLeft
  12.     20.10 = FILE
  13.     20.10.file = fileadmin/template_2.html
  14.    
  15.   }
  16. }

Entwicklungsumgebung

TYPO Version:
4.3.0

Sponsored by:

ideenwerft webhosting
ideenwerft caretaker