#17449Clearing cache renders content incorrectly/incompletely
Description
Updating the template or clearing the cache breaks the rendering of the page. Some parts of the template are not substituted.
For example all content elements (from temp or styles.content.get) that should go into subparts of the template identified by DIV are not substituted in. Content elements that should go into subparts identified by TD do work.
In the template I have:
- Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 { # Read the template file:
content = FILE
content.file = fileadmin/templates/maintemplate.htm
- Here we define which elements in the HTML that
- should be wrapped in subpart-comments:
elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
DIV.all = 1
TD.all = 1
} - Prefix all relative paths with this value:
relPathPrefix = fileadmin/templates/
}
- 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<br> workOnSubpart = DOCUMENT_BODY</body>
#Top
subparts.title < temp.title
subparts.topmenu < temp.topmenu
#Left column
subparts.left < styles.content.getLeft
#Center column
subparts.normal < styles.content.get
subparts.teaser < temp.teaser
subparts.bottommenu < temp.bottommenu
#Right column
subparts.right < styles.content.getRight
#Footer
subparts.copyright < temp.copyright
subparts.languagechooser < temp.languagechooser
}
Only the subparts.copyright and subparts.languagechooser are displaying with content.
The site has been working OK, but broke when clearing the cache.
(issue imported from #M5917)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.