Hallo zusammen,
ich habe versucht, den Templateselector in mein Projekt zu setzen. Leider bekomme ich seitdem nur noch leere Seiten angezeigt.
Für die Extension habe ich ein +ext angelegt mit den Konfigurationen
// --- SET UP TEMPLATE SELECTOR -----------------------------------------------
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/
templatePathSub = fileadmin/sub/
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = tmpl_homepage.html
defaultTemplateFileNameSub = tmpl_homepage.html
// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1
}
// --- CONFIGURE THE AUTOMAKETEMPLATE EXTENSION --------------------------
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOKUMENT
HEAD.all = 1
HEAD.all.subpartMarker = DOKUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
DIV.all = 1
}
relPathPrefix = fileadmin/templates/
}
// --- CREATE TS TEMPLATES FOR MAIN AND CONTENT AREA ------------------
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOKUMENT_HEADER
}
temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = sub
workOnSubpart = DOKUMENT
subparts.content < styles.content.get
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = main
workOnSubpart = DOKUMENT
subparts.content-normal < temp.contentAreaTemplate
}
und das Ganze im root-Template eingebunden:
# Einbinden von Extensions
// --- CREATE THE MAIN PAGE OBJECT -------------------------------------------
page = PAGE
page {
typeNum = 0
headerData.10 < temp.headTemplate
10 < temp.mainTemplate
}
Aber wie gesagt, es erscheinen nur leere Seiten. Ich möchte auch eigentlich keine Subtemplates verwenden, sondern nur Maintemplates. Kann mir jemand einen Tipp geben, wie ich die Extension richtig konfiguriere?
Vielen Dank für jeden Hinweis!!!
Gruß Alex