Einzelnen Beitrag anzeigen
  #5  
Alt 19.05.07, 13:21
Benutzerbild von Gruenbaer
Gruenbaer Gruenbaer ist offline
Forum Aktivist
 
Registriert seit: 16.05.07
Beiträge: 51

Ich hab mal auf die Schnelle eine Testseite gebastelt: Test Seite.

Mein TS sieht so aus:
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:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {
    # Read the template file:
content = FILE
content.file = fileadmin/template/rootpage.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
UL.all = 1
}

    # Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}

temp.MENU = HMENU
temp.MENU {
special = directory
special.value = 68
1 = TMENU
1 {
expAll = 1
wrap = <ul id="nav">|</ul>
noBlur = 1
NO = 1
NO.wrapItemAndSub = <li>|</li>

IFSUB = 1
IFSUB.wrapItemAndSub = <li class="menuparent">|</li>
ACTIFSUB < .IFSUB
}
2 < .1
2.wrap = <ul>|</ul>

3 < .2
4 < .2
}


# 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 ###topmenu### subpart with dynamic menu:
subparts.Navigation < temp.MENU


# Substitute the ###content### subpart with some example content:

subparts.content_right < styles.content.get

}

# Main TEMPLATE cObject for the HEAD

temp.headTemplate = TEMPLATE

temp.headTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <head>-tags

workOnSubpart = DOCUMENT_HEADER

}

# Default PAGE object:

page = PAGE

page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:

page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

Auf allen Unterseiten habe ich ein +ext Template erstellt und folgendes eingefügt:
Typoscript-Code:
1:
2:
subparts.content_left = TEXT
subparts.content_left.value = HELLO WORLD - CONTENT

Ich nehme mal schwer an, das das Problem hierin begraben liegt. Jedoch habe ich keinen Plan, was ich falsch mache...
Mit Zitat antworten