also, ich versuchs nochmal auf meine weise 🙂
die menu items sollten automatisch in an den ort
gewrapt werden, wo sich das | befindet.
hier hast du noch mein ganzes template,
da siehst du wie ich das gelöst hab.
aber vielleicht hab ich dich schon wieder falsch verstanden o.O
never know!!
ich hoffe das hilft dir ein bisschen weiter...
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.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/
}
page.config.index_enable = 1
config.language = de
# breadcrumb
temp.breadcrumb = HMENU
temp.breadcrumb {
special = rootline
# Zahl vor dem | gibt an von welchem Knoten aus gearbeitet wird
special.range = 2|-1
1 = TMENU
1.target = _self
1.wrap = <span class="breadcrumb"> | </span>
1.NO.linkWrap = > |
1.NO.ATagParams = class="breadlink"
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
expAll = 1
# Normal state properties
NO.allWrap = <tr><td class="menu1-level1-no"> | </td></tr>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <tr><td class="menu1-level1-act"> | </td></tr>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <tr><td class="menu1-level2-no" onmouseover="this.className = 'menu1-level2-Roll'" onmouseout="this.className = 'menu1-level2-no'"> | </td></tr>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <tr><td class="menu1-level2-act"> | </td></tr>
}
# third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
# Normal state properties
NO.allWrap = <tr><td class="menu1-level3-no" onmouseover="this.className = 'menu1-level3-Roll'" onmouseout="this.className = 'menu1-level3-no'"> | </td></tr>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = </tr><td class="menu1-level3-act"> | </td></tr>
}
# 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 ###menu_1### subpart with some example content:
#subparts.menu_1 = TEXT
#subparts.menu_1.value = HELLO WORLD - MENU
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###brot### subpart with dynamic menu:
subparts.breadcrumb < temp.breadcrumb
# Substitute the ###content### subpart with some example content:
subparts.content < 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
}
#marks.ROOTLINE = HMENU
#marks.ROOTLINE {
#special = rootline
#special.range = 0|-1
#}
# 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
ps: schon bald ist wochenende, und dan ist für zwei tage alles nicht mehr so schlimm!
#giggle# :p #giggle# #evil# #giggle# :p #giggle#