[TYPO3-german] Re: Seiten ID abhängige Templates laden

Matthias Gmeiner matthias at matthiasgmeiner.com
Wed Mar 22 18:18:58 CET 2017


Bin leider ken Typo3 Speziallist :) Typo 3 ist hier die neuste LTS Version in Verwendung.

Hab es nun mit Globalvar gelöst. Ist zwar nicht schön aber klappt.

[PIDinRootline = 1]
temp.maintemplate = COA
temp.maintemplate {
  10 = COA
  10 {
    if.isTrue.numRows < styles.content.getRight
  10 = TEMPLATE
  10 {

    template = FILE
    template.file = fileadmin/templates/index.html
    }
  }
  20 = COA
  20 {
    if.isFalse.numRows < styles.content.getRight
  10 = TEMPLATE
  10 {

    template = FILE
    template.file = fileadmin/templates/index-1-spalte.html
  }
  }
}
[global]

Das habe ich jetzt 3 mal drinnen.
Wollte nicht den kompletten TypoScript neu aufbauen, Da ich bei dem Projekt nur eingesprungen bin und das Update durchgeführt habe und das Template angepasst habe,

Liebe Grüße


More information about the TYPO3-german mailing list