Hallo,
ich habe mal wieder eine Frage an euch 🙂
Und zwar habe ich ein Template auf der aller ersten Seite "Startseite". Dort hab ich einen Menü- und einen Contentbereich. Funktioniert auch alles wunderbar, auch auf den Unterseiten.
Jetzt habe ich allerdings auf einer Unterseite ein neues Template erstellt, da ich das Layout nur dort etwas verändert habe. Ich habe also fast den identischen Setup-Code aus dem Roottemplate in das neue Template der Unterseite kopiert und die Templatedatei angepasst. Nun habe ich aber folgendes Problem:
Im Template habe ich ein Häcken bei Clear: Setup und Constants und bei Rootlevel. Wenn ich den Haken bei Rootlevel rausnehme, dann zeigt er mir die Navigation nicht an, wenn ich den Haken drinlasse, zeigt er mir die Navi an, aber dafür nicht das mm_forum, was sich im Contentbereich befindet.
Hier noch ein Ausschnitt des relevanten TS-Codes:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/community.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
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# Menu 1 cObject
temp.s2z6s1 = HMENU
# First level menu-object, textual
temp.s2z6s1.1 = TMENU
temp.s2z6s1.1 {
# Normal state properties
NO.allWrap = <div class="s2z6s12"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="s2z6s12b"> | </div>
}
# Second level menu-object, textual
#temp.s2z6s1.2 = TMENU
#temp.s2z6s1.2 {
# Normal state properties
#NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active state and set properties:
#ACT = 1
#ACT.allWrap = <div class="menu1-level2-act"> | </div>
#}
# 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 ###s2z6s1### subpart with dynamic menu:
subparts.s2z6s1 < temp.s2z6s1
# Substitute the ###s2z6s2b### subpart with some example content:
subparts.s2z6s2b < 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
Kann mir jemand helfen? Vielen Dank!