Moin ich hab nen Problem:
Ich möchte in mein besthendes Template eine schöne css Aufklapp Navi integrieren. Ich muss also die bestehdne DIV Container Wraps erstzen. Aber mit was. Kann mir jemand helfen?
Der DIV in dem das Menu drinsteckt ist class="menu"
Und dann kommen nur noch tables für ie oder ul und li
Hier der code:
Code:
# Configuring the Auto Parser:
plugin.tx_automaketemplate_pi1 {
#Read the Template file:
content = FILE
content.file = fileadmin/template/test/template_12.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
}
#Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/test/
}
# Menue 1 cObject
temp.menu_1 = HMENU
# First Level menue-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
#Normal state properties
NO.allWrap = <div class="menu"> | </div>
# Enable active stats and set properties
ACT = 1
ACT.allWrap = <div class="menu"> | </div>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
#Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active stats 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 ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###news## subpart with some example content:
subparts.news < styles.content.getLeft
}
# Main Template cObjects 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
Vielen Dank für die Hilfe!