[Typo3-UG Oesterreich] Fehler mit Autoparser
Roman Walther
roman.walther at mac.com
Thu Nov 11 13:17:44 CET 2004
At the beginning:
Ich bin kompletter Neuling was typo3 betrifft.
Ich arbeite mit typo 3.5.0 und habe versucht das Tutorium "Moderne
Templateerstellung Teil1" durchzumachen. Alles hat funktioniert bis ich
versucht habe den Content des Templates durch den Autoparser einzulesen.
Nun habe ich folgende Fehlermeldung bekommen.
Fatal error: Call to undefined function: render_subheader() in
/opt/root/home/typo3.5/typo3/ext/css_styled_content/pi1/class.tx_cssstyledco
ntent_pi1.php on line 46
Mein Template schaut folgendermassen aus:
# Configuring Template Parser
plugin.tx_automaketemplate_pi1 {
# Reading Template
content = FILE
content.file = fileadmin/template_tut/template_1.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
}
relPathPrefix = fileadmin/template_tut/
}
# 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 = <div class="menu1-level1-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </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 state 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
}
# 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.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate
Sollte an sich gleich sein wie das im Tutorial, aber vielleicht habe ich ja
einen Fehler gemacht.
Greetz
im99x26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-at/attachments/20041111/7518117a/attachment.htm
More information about the TYPO3-at
mailing list