Hallo, habs jetzt mal 2 Tage ruhen lassen und mit einem frischem Kopf ging es gleich voran.
Also zunächst einmal verstehe ich jetzt langsam wie Typoscript funktioniert. Mein Setup is gar nicht mal so schlecht - man muss es halt nur verstehen können! 🙂
Mit 2 Menüs meine ich ein horizontales oben mit entryLevel=0 und dann links ein 2. mit entryLevel=1. Wie gesagt ich bin weiter gekommen. Das horizontale Menü funktioniert und zeigt auch nur das Level 0 an, aber obwohl mein Menübereich 2 anscheinend eingebunden wird, erscheinen dort keine Menüeinträge. Das Level steht auf 1, aber auch wenn ich es auf 0 setze wird kein Menü angezeigt. Ich habe es in eine grafisch umlegte Tabelle eingefügt, was doch kein Problem darstellen sollte, oder?
Wenn du magst schick ich dir auch gern mal nen Link zu meiner Seite, damit du sehen kannst was ich meine. Hier noch mal mein aktualisiertes Setup.
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_deu.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/
}
###############################
# Menu 1 cObject
temp.menu_1 = HMENU
temp.menu_1.entryLevel = 0
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <span class="menu1-level1-no"> | </span>
}
# Menu 2 cObject
temp.menu_2 = HMENU
temp.menu_2.entryLevel = 1
temp.menu_2 = TMENU
temp.menu_2 {
# Normal state properties
NO.allWrap = <span class="menu2-level1-no"> | </span>
}
###############################
# 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 ###menu_2### subpart with dynamic menu:
subparts.menu_2 < temp.menu_2
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###rootline### subpart with rootline:
subparts.rootline < temp.rootline
}
# 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
page.stylesheet = fileadmin emplatemainstylesheet.css
page.bodyTag= <body background = "fileadmin emplatemainimagesackground.png">
# 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