Hallo,
hier nochmal ein Newbee.
Versuche ein Menü einzubauen nach dem Modern Template Building Tutorial 1.
Um die Menüpunkte wird hier immer eine <DIV class> gelegt. Meine Menüpunkte werden einfach automatisch per display:block erzeugt. Ich benötige also den wrap nicht.
Mein Template Code sieht so aus:
-------------
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/template_artikel.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
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}
# navilinks cObject
temp.navilinks = HMENU
# First level menu-object, textual
temp.navilinks.1 = TMENU
# Second level menu-object, textual
temp.navilinks.2 = TMENU
# 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 ###navilinks### subpart with some example content:
subparts.navilinks < temp.navilinks
# Substitute the ###newscontent### subpart with some example content:
subparts.newscontent = TEXT
subparts.newscontent.value = HELLO WORLD - CONTENT
}
# 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
--------------
Danach steht zwischen <div id="navilinks"></div> allerdings überhaupt nichts.
Kann mir jemand helfen?
Viele Grüße
Tombee