Thema: Gelöst - Template für Subpage
Einzelnen Beitrag anzeigen
  #4  
Alt 15.01.08, 08:51
Arno Arno ist offline
Forum Aktivist
 
Registriert seit: 19.09.07
Alter: 20
Beiträge: 60

@Cyprus, danke für deinen Vorschlag, konnte das Problem allerdings anders lösen (meiner Meinung nach unkomplizierter ).

@gbauer81, danke auch dir, deinen Vorschlag hatte ich auch schon ausprobiert, doch er musste noch ein bisschen erweitert werden, damit es funktioniert:


Hier mein Template Setup der geänderten Subpage:
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:
53:
## Configuring the Auto-Parser for main template ##
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
content = FILE
content.file = fileadmin/template/main/index.html

    # 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
DIV.all = 1
TD.all = 1
}
}

## Header Bild 2 ##
temp.headerBild = IMAGE
temp.headerBild {
file = fileadmin/template/main/template_images/headerBild2.jpg
altText = Header Bild 2
titleText = Header Bild 2
wrap = <h2> | </h2>
}


############ Templates ############

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY

    # Substitute the ###header### subpart with some example content:
subparts.headerBild < temp.headerBild
}


############ PAGES ############

## Default PAGE ##
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
Gruss, Arno
Mit Zitat antworten