Issue Bug Closed

#17449Clearing cache renders content incorrectly/incompletely

Peter Murray 07/07/07, 12:43 updated 05/06/13, 13:26

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:

  1. Configuring the Auto-Parser for main template:
    plugin.tx_automaketemplate_pi1 { # Read the template file:
    content = FILE
    content.file = fileadmin/templates/maintemplate.htm
  1. Here we define which elements in the HTML that
  2. 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
    }
  3. Prefix all relative paths with this value:
    relPathPrefix = fileadmin/templates/
    }
  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<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.