[Typo3-UG Oesterreich] Template-Frage

Anatol Mayr anatol.mayr at liwest.at
Wed Jan 7 09:30:05 CET 2004


Bin von Aegir/Nadmin-Studio auf Typo3 umgestiegen und versuche mich gerade
in die TS-Syntax einzuarbeiten,
dabei habe ich u.a. folgendes Template ausprobiert.

############################################################################
###############
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/vorlage.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/
}

# 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 ###content### subpart with some example content:
subparts.CONTENT_MITTE= TEXT
subparts.CONTENT_MITTE.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


#################################################################

Leider wird überhaupt nichts angezeigt, wenn ich die mit dem Template
verbundene Seite ansehe.

wenn ich die Zuweisung
page.10 =< plugin.tx_automaketemplate_pi1

direkt ins Template schreibe wird die Vorlage korrekt eingelesen.

Weiss jemand, wo's happert?

LG,

Anatol Mayr / Eurolab







More information about the TYPO3-at mailing list