Einzelnen Beitrag anzeigen
  #7  
Alt 08.04.08, 14:09
gbauer81 gbauer81 ist offline
Forum Freak
 
Registriert seit: 26.01.07
Beiträge: 536

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 {
    # Read the template file:
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]

    # Here we define which elements in the HTML that
    # should be wrapped in subpart-comments:
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!
__________________
mfg
Günni
City-Tiger - Online durch die Straßen tigern
Mit Zitat antworten