[TYPO3-german] Template abhängig vom Spalteninhalt

Susanne Wiese s.wiese at netcologne.de
Sun Oct 15 10:44:09 CEST 2006


Hallo zusammen,

dank Liste und 'ergooglen' habe ich einen Templatewechsel je nach 
Vorhandensein eines Spalteninhalts definiert:

Jedoch habe ich bisher noch keinen Weg gefunden, die Marker nur einmal 
zu definieren.
Es gibt doch sicher noch einen eleganteren Weg ohne doppelte 
Schreibarbeit um die Marker zu definieren ? Ich habe schon einiges 
versucht, aber da fehlt mir noch einiges an typoscript-Praxis.


Vielen Dank
Susanne



page.10 < temp.templateswitch


temp.templateswitch = COA
temp.templateswitch {
     10 = COA
     10 {
         if.isTrue.numRows < styles.content.getRight
         10 = TEMPLATE
         10 {
             template = FILE
             template.file = fileadmin/_template/template1.html
             workOnSubpart = DOCUMENT
             marks {
              LOGO < temp.logo
              TOPMENU < temp.topmenu
              LEFTMENU < temp.leftmenu
              BRKR < temp.brkrmenu
              CONTENT < styles.content.get
              SEARCH =
              RIGHT < temp.right
              FOOTER < temp.footer
             }
         }
     }
     20 = COA
     20 {
         if.isFalse.numRows < styles.content.getRight
         10 = TEMPLATE
         10 {
             template = FILE
             template.file = fileadmin/_template/template2.html
             workOnSubpart = DOCUMENT
             marks {
              LOGO < temp.logo
              TOPMENU < temp.topmenu
              LEFTMENU < temp.leftmenu
              BRKR < temp.brkrmenu
              CONTENT < styles.content.get
              SEARCH =
              RIGHT < temp.right
              FOOTER < temp.footer
             }
         }
     }
}


Dies folgende Version hat bei mir nicht funktioniert ?

page.10 = TEMPLATE
page.10 {
  template < temp.templateswitch
  workOnSubpart = DOKUMENT
  marks { ...}
}






More information about the TYPO3-german mailing list