Hallo zusammen.
HAbe schon etwas gelesen und bekomme es auch hin bei einem komplett leerem TS eine PHP datei einzubinden. Nun möchte ich aber bei folgendem TS statt mit css_styled_content den contentberich über ein php-script füllen. Das soll aber nur auf einer Subpage statt finden.
Dachte das würde dann über ein extension template funktionieren, bekomme es aber nciht hin.
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/templates/main/index.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/templates/main/
}
temp.menu = HMENU
temp.menu {
### Erste Ebene ###
1 = TMENU
1 {
wrap = <ul class="menu">|</ul>
expAll = 1
NO.wrapItemAndSub = <li class="folder">|</li>
ACT < .NO
ACT = 1
ACT.ATagParams = class="active"
}
### Zweite, dritte und vierte Ebene (Kopieren von erster Ebene) ###
2 < .1
3 < .1
4 < .1
}
# 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-left### subpart with some example content:
subparts.menu-left < temp.menu
# Substitute the ###content-main### subpart with some example content:
subparts.content-main < 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
# 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
WIe veranlasse ich dass in dem extension template
subparts.content-main < styles.content.get
durch sowas ersetzt wird
subparts.content-main < ERGEBNIS PHP-File
Hoffe auf Anregungen
Danke schon mal