Hallo und schönen Nachmittag zusammen!
Ich habe folgende Seitenstruktur...
Root
--- Home
Default
--- Menu1
Die benötige ich, da Root und Default jeweils ein anderes HTML Template verwenden, also verschiedener Typo-Script Code
Nun möchte ich alle Punkte (Home, Menu1, ...) in ein Menü packen. Hier mein Code:
# --- configuring the auto-parser plugin
plugin.tx_automaketemplate_pi1 {
# --- read the template file
content = FILE
content.file = uploads/tf/tmp_start.html
# --- select the elements that should be wrapped
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
UL.id.mainnav = 1
DIV.id.content = 1
DIV.id.news = 1
}
}
# --- 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 ###mainnav### subpart with dynamic menu
subparts.mainnav < tmp.MAINNAVIGATION
# --- substitute the ###content### subpart with content
subparts.content < styles.content.get
}
page = PAGE
page.typeNum = 0
page.stylesheet = uploads/tf/styles.css
# --- copying the content from TEMPLATE for <body>-section
page.10 < temp.mainTemplate
page.config {
language = de
locale_all = de_DE
}
Und das Template für die Navigation:
tmp.MAINNAVIGATION = HMENU
tmp.MAINNAVIGATION {
1 = TMENU
1 {
wrap = <ul>|</ul>
NO = 1
NO.wrapItemAndSub = <li>|</li>
ACT = 1
ACT.doNotLinkIt = 1
ACT.wrapItemAndSub = <li class="pressed">|</li>
}
}
Nun sehe ich aber nur den Punkt "Home" - der Punkt Main01 wird nicht im Hauptmenü angezeigt!
Wie kann ich das erreichen?
VIELEN DANK!
montharon