Hallo,
ich möchte mein menü an einer bestimmten Position aufteilen.
Also hier mal ein beispiel:
[Seite1]
[Seite2]
[Seite3]
-----aufteilung-----
[Seite4]
[Seite5]
[Seite6]
Also ich moechte die ersten 3 Level1-Links per
<dív id="menu1">...</div>
in mein Template einfuegen und die anderen 3 per
<div id="menu2">...</div>
einbinden.
(Also die Submenues sollen automatisch mit eingebunden werden unter ihre Level1-Links, also die submenues sollen ganz normal ein/ausgeklappt werden unter den dazugehoerigen Level1-links!!!!)
Was muss ich da in der TS-Setup eintragen?
Hier meine aktuelle Template-Setup:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/Amsbet/template.htm
# 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/Amsbet/
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <p><div class="menu1-level1-no"> | </div></p>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <p><div class="menu1-level1-act"> | </div></p>
}
# 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>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 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 normal-content:
subparts.content < styles.content.get
# Substitute the ###right_content### subpart with right-content
subparts.right_content < styles.content.getRight
}
# 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
(Also im großen und ganzen ist das die Standart-Setup von 'Moderne templateerstellung' von typo3.org)
Was muss ich da jetzt machen?
Bis dann.
s4mba