Hallo,
mit dem folgenden TS möchte ich gern die zweite Ebene des Menu in einem anderen Bereich öffnen. Wo liegt mein Fehler?
Vielen Dank im voraus!
Mein TS
# get content
styles.content.get = CONTENT
styles.content.get {
table = tt_content
select.orderBy = sorting
select.where = colPos=0
}
# get content Info
styles.content.getInfo < styles.content.get
styles.content.getInfo.select.where = colPos=2
# Menu 1 cObject
temp.Navigation = HMENU
temp.Navigation.entryLevel = 0
# First level menu-object, textual
temp.Navigation.1 = TMENU
temp.Navigation.1 {
# Normal state properties
NO.allWrap = <span class="menu-no"> | </span>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <span class="menu-act"> | </span>
}
# Menu 2 cObject
temp.Navigation2 = HMENU
temp.Navigation2.entryLevel = 1
# second level menu-object, textual
temp.Navigation2.1 = TMENU
temp.Navigation.2.1 {
# Normal state properties
NO.allWrap = <div class="menu2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu2-act"> | </div>
}
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/_temp_/main/index.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
SPAN.all = 1
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/_temp_/main/
}
# 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 ###Navigation### subpart with dynamic menu:
subparts.menu1 < temp.Navigation
subparts.Nav < temp.Navigation2
# Substitute the ###Inhalt### subpart with some example content:
subparts.Inhalt < styles.content.get
# Substitute the ###Info### subpart with some example content:
subparts.Info < styles.content.getInfo
}
# 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