Hallo Leute,
beim Testen der v3.7.0 ist mir etwas aufgefallen, was ich nicht bisher lösen konnte:
Der Scriptcode unter 3.5.0 funktioniert nicht mehr unter 3.7.0. Es scheint, als ist die funktionsweise
des Autotemplateparser verändert.
Bsp: Eine Hauptseite mit HTML-Template (unter fileadmin/template/main/vorlage.html)
zeigt nichts mehr an - der Bodytag im HTML des Frontends bleibt leer (Seite bleibt weiß...).
Geladen sind die EXT css_styled_content und automaketemplate.
Frage: Hat sich etwas grundlegendes geändert ?
Hier mal mein Templatecode:
------------------------------------------------------------------------------------------------------
###
### Configuring the auto-parser for the main template ###
###
plugin.tx_automaketemplate_pi1 {
# read the template file
content = FILE
content.file = fileadmin/template/main/vorlage.html
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 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> tag
workOnSubpart = DOCUMENT_BODY
# Substitude the ###IMG_LEFT### subpart with a picture
subparts.img_left = IMAGE
subparts.img_left.file = fileadmin/template/main/images/InMotionLogo.gif
# copying the clickmenu
#subparts.nav_stat < temp.nav_stat
#...
}
### 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> tag
workOnSubpart = DOCUMENT_HEADER
}
### Default Page object ###
page = PAGE
page.typeNum = 0
#copying the content from template for <body>-section
page.stylesheet = fileadmin/template/main/res/stylesheet.css
page.10 < temp.mainTemplate
#copying the content from template for <head>-section
page.headerData.10 < temp.headTemplate
------------------------------------------------------------------------------------------------------
Grüsse Frank