Einzelnen Beitrag anzeigen
  #3  
Alt 18.12.07, 15:24
cicero cicero ist offline
Forum Newbie
 
Registriert seit: 08.11.06
Beiträge: 45

Hier ein TS Setup für die Template Selector Extension.
Bei den Extension Doks finden sich auch Beispiele zur Verwendung in TypoScript.
Die Ids der Layer müssen hier natürlich mit den Angaben fürs mainTemplate übereinstimmen. Und CSS styled Content beim Template mitnehmen.
Die Menüs hier wie leftMenu je nach belieben mit einem T/GMENU zusammenstellen.

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
plugin.tx_rlmptmplselector_pi1 {
templatePathMain = fileadmin/template/main/
templatePathSub = fileadmin/template/sub/
defaultTemplateFileNameMain = template_1.html
defaultTemplateFileNameSub = ct_1.html
inheritMainTemplates = 1
inheritSubTemplates = 1
}

plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
}

relPathPrefix = fileadmin/template/main/
}


temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}

temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template =< plugin.tx_automaketemplate_pi1
template.content.templateType = sub
workOnSubpart = DOCUMENT_BODY
subparts.colNormal < styles.content.get
}

temp.mainTemplate  = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
template.content.templateType = main
workOnSubpart = DOCUMENT_BODY
subparts.menu < temp.leftMenu
subparts.maincont < temp.contentAreaTemplate
}

page {
typeNum = 0
headerData.10 < temp.headTemplate
10 < temp.mainTemplate
}
Mit Zitat antworten