Hi,
hatte auch das Problem, nach zwei Tagen purer Verzweiflung habe ich es doch hingekriegt.
Im Autoparser Template gibst Du folgendes ein:
plugin.tx_automaketemplate_pi1 {
elements >
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
}
relPathPrefix = Pfad zu Deinen main templates
Dann erstellst Du Dir ein zweites Template, nenn es frames_parser oder wie auch immer:
Da gibst Du dies ein, oder ähnlich:
#Für die Ausgabe der Frames ohne Template selector
topParser < plugin.tx_automaketemplate_pi1
topParser {
content >
content = FILE
content.file = Pfad zu HTML Template/top.html
}
navParser < plugin.tx_automaketemplate_pi1
navParser {
content >
content = FILE
content.file = Pfad zu HTML Template/nav.html
}
#Für den Inhaltsframe mit Template selector
contentParser < plugin.tx_automaketemplate_pi1
contentParser {
content >
content = FILE
content < plugin.tx_rlmptmplselector_pi1
content.defaultTemplateFileName = content.html
}
Danach in Deinem Haupttemplate:
temp.top_main = TEMPLATE
temp.top_main{
template >
template < topParser
workOnSubpart = DOCUMENT_BODY
subparts{
menu_oben < temp.menu_oben
}
}
temp.top_header = TEMPLATE
temp.top_header{
template < topParser
workOnSubpart = DOCUMENT_HEADER
}
top_frame{
disableAllHeaders = 1
config.doctype = xhtml_trans
bodyTagCObject < topParser
bodyTagCObject.getBodyTag=1
10 < temp.top_main
headerData.10 < temp.top_header
}
Das selbe dann mit dem Navigationsframe.
Und dann der Inhaltsframe:
temp.content_cArea = TEMPLATE
temp.content_cArea {
template < contentParser
template.content.templateType = sub
#template.content.defaultTemplateFileName = start_page.html
template.relPathPrefix = fileadmin/templates/elements/
template.elements >
template.elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
TD.all = 1
}
workOnSubpart = contentsection
subparts {
colNormal < styles.content.get
colLeft < styles.content.getLeft
colRight < styles.content.getRight
colBorder < styles.content.getBorder
}
}
temp.content_main = TEMPLATE
temp.content_main {
template < contentParser
template..content.templateType = main
workOnSubpart = DOCUMENT_BODY
subparts{
subtemplate < temp.content_cArea
}
}
temp.content_mainHeader = TEMPLATE
temp.content_mainHeader{
template < contentParser
workOnSubpart = DOCUMENT_HEADER
}
temp.content_cAreaHeader = TEMPLATE
temp.content_cAreaHeader{
#template < plugin.tx_automaketemplate_pi1
template < temp.content_cArea.template
workOnSubpart = DOCUMENT_HEADER
}
content_frame{
config.doctype = xhtml_trans
bodyTagCObject < contentParser
bodyTagCObject.getBodyTag=1
10 < temp.content_main
headerData.10 < temp.content_mainHeader
headerData.20 < temp.content_cAreaHeader
}
So, die Reihenfolge der "Include static beachten"
erst Autoparser, dann der Frameparser, und dann der Rest.
Wenn ich nichts vergessen habe sollte es so bei Dir funktionieren. Wenn Du den Template selector nicht verwenden willst, dann vergiss das was im Beispiel des Inhaltsframes steht, dann kannst Du analog das Beispiel des Top und Nav-Frames benutzen
War zwar etwas kurz, aber ich hoffe es hilft.
Gruß
gaucho