[Datug] TypeScript-Problem
Jan Nikolaus
Jan.Nikolaus at t-online.de
Wed Sep 8 21:43:34 CEST 2004
Hallo,
ich habe mal wieder ein kleines Problem. Irgendwie finde ich einfach den
Fehler nicht. Dieses Script stammt in großen Zügen aus der Doku 'Moderne
Templateerstellung' und ist an meine Bedürfnisse angepasst. Dennoch ist
es zunächst nur ein Test-Script.
Habe ich da was übersehen? Die produzierte Seite jedenfalls hat einen
leeren Body und einen Standart-Header. Bei Bedarf kann ich auch die
HTML-Datei nachsenden.
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the tmeplate file:
content = FILE
content.file = fileadmin/dccc_tmpl/dccc_tmpl.html
# Here we define which elements in the HTML that
# should be wraüüed in supart-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/dccc_tmpl/
}
# 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 netween the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###hmenu### subpart with some example content:
subparts.hmenu = TEXT
subparts.hmenu.value = HELLO WORLD - MENU
# Substitute the ###content### subpart with some example content:
subparts.content = TEXT
subparts.content.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
--
mfG
--
Jan Nikolaus
mailto:jan.nikolaus at t-online.de
mailto:hq at tuxfreak.org
http://www.tuxfreak.org
More information about the TYPO3-UG-darmstadt
mailing list