Hallo.
Vielleicht weiß ja hier jemand Rat, ich selber bin wohl anscheinend zu blöd oder hab etwas Grundlegendes übersehen. Der Code ist genau der selbe im Template einer Seite der obersten Ebene (0) wie auch im Template einer Seite in Ebene 1. Sichtbar wird das Menü (alle Seiten der Ebene 1) aber nur in Ebene 0, nicht in Ebene 1.
TEMP_MAIN_NAV = HMENU
TEMP_MAIN_NAV.entryLevel = 0
TEMP_MAIN_NAV {
1=GMENU
1 {
NO {
wrap (
|
)
XY = [10.w]+30,[10.h]+10
offset = 10,10
backColor = #1c4693
10=TEXT
10 {
text.field=title
fontColor=#ffffff
fontFile = fileadmin/fonts/uvc_____.TTF
fontSize=13
}
}
RO < .NO
RO=1
RO.backColor = #1c4693
RO.10.fontColor= #ffffff
ACT < .RO
ACT=1
}
}
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/presse.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 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 ###menue1### subpart with dynamic menu:
subparts.menue1 < TEMP_MAIN_NAV
# Substitute the ###inhalt### subpart with some example content:
subparts.inhalt = TEXT
subparts.inhalt.value = CONTENT
}
# 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