Du musst dort wo du dein Template einbindest die Abfrage machen welches Template er nutzen soll.
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
| plugin.tx_automaketemplate_pi1 { content = FILE [globalVar = GP:L = 2] - ERROR: Line 3: Object Name String, "[globalVar" contains invalid character "[". Must be alphanumeric or one of: "_-." content.file = fileadmin/templates/main/filia_home/template1.html [global] - ERROR: Line 5: On return to [GLOBAL] scope, the script was short of 1 end brace(s) [globalVar = GP:L = 1] content.file = fileadmin/templates/main/filia_home/template2.html [global] elements { BODY.all = 1 BODY.all.subpartMarker = DOCUMENT_BODY HEAD.all = 1 HEAD.all.subpartMarker = DOCUMENT_HEADER HEAD.rmTagSections = title TD.all = 1 } |
Codebeispiel ist ungetestet!