Project

General

Profile

Actions

Bug #17449

closed

Clearing cache renders content incorrectly/incompletely

Added by Peter Murray over 17 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2007-07-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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
    workOnSubpart = DOCUMENT_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)

Actions

Also available in: Atom PDF