Hallo,
ich habe einige Verständnisfragen zu dem nachfolgendem Code und ich hoffe jemand kann Sie mir beantworten?
Zuerst wird ein temporäres Objekt angelegt, was ich noch verstehe und etwas weiter untem im Code
plugin.tx_automaketemplate_pi1 einem Objekt die Auto-parser-Erweiterung zugeordnet. Aber wird das Objekt
temp.mainTemplate nicht zweimal angelegt und dementsprechend überschrieben? Außerdem kann ich nicht nachvollziehen wo
sich denn das eigentliche Template befindet, weil ich überhaupt keine Pfadangabe finde, wie etwa so:
page.10.template.file = fileadmine/... oder so
plugin.tx_automaketemplate_pi1.content.file = fileadmin/...
# 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 some example content:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content = COA
subparts.content {
10 = TEXT
10.value = <!--TYPO3SEARCH_begin-->
20 < styles.content.get
30 = TEXT
30.value = <!--TYPO3SEARCH_end-->
}
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate.template =< plugin.tx_automaketemplate_pi1