Hallo zusammen,
ich bin ziemlich ratlos. Beim Versuch mein Menu in einen horizontalen und einen vertikalen Teil zu trennen, wird im vertikalen Teil immer das volle Menu angezeigt - unabhängig vom Entrylevel...
Zu begutachten hier: http://typo3.screckenfeld.de
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/scr_b/main/scr_template.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
UL.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/scr_b/main/
}
# Horizontales Menu oben
temp.menu_h = HMENU
# First level menu-object, textual
temp.menu_h.entrylevel = 1
temp.menu_h.wrap = <ul class="cl_topmenu">|</ul>
temp.menu_h.1 = TMENU
temp.menu_h.1{
# Normal state properties
NO.allWrap = <li class="cl_topmenu"> | </li>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li class="cl_topmenu"> | </li>
}
# Linkes Menu - Ebene 1
temp.menu_l = HMENU
temp.menu_l.entrylevel = 2
temp.menu_l.stdWrap.wrap = <ul class="cl_leftmenu"> |</ul>
temp.menu_l.1 = TMENU
temp.menu_l.1{
expAll = 0
# Normal state properties
NO.wrapItemAndSub = <li class="cl_leftmenu1"> | </li>
# Enable active state and set properties:
ACT = 1
ACT.wrapItemAndSub = <li class="cl_leftmenu1"> | </li>
CUR = 1
CUR.wrapItemAndSub = <li class="cl_leftmenu1"> | </li>
}
# Linkes Menu - Ebene 2
temp.menu_l.2 = TMENU
temp.menu_l.2.wrap = <ul> |</ul>
temp.menu_l.2{
expAll = 0
# Normal state properties
NO.wrapItemAndSub = <li class="cl_leftmenu2"> | </li>
# Enable active state and set properties:
ACT = 1
ACT.wrapItemAndSub = <li class="cl_leftmenu2"> | </li>
CUR = 1
CUR.wrapItemAndSub = <li class="cl_leftmenu2"> | </li>
}
# Linkes Menu - Ebene 3
temp.menu_l.3 = TMENU
temp.menu_l.3.wrap = <ul> |</ul>
temp.menu_l.3{
expAll = 0
# Normal state properties
NO.wrapItemAndSub = <li class="cl_leftmenu3"> | </li>
# Enable active state and set properties:
ACT = 1
ACT.wrapItemAndSub = <li class="cl_leftmenu3"> | </li>
CUR = 1
CUR.wrapItemAndSub = <li class="cl_leftmenu3"> | </li>
}
# 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 ###topmenu### subpart with the menu:
subparts.topmenu < temp.menu_h
# Substitute the ###leftmenu### subpart with the menu:
subparts.leftmenu < temp.menu_l
# Substitute the ###content### subpart with some example content:
subparts.content = TEXT
subparts.content.value = HELLO WORLD - 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