Project

General

Profile

Actions

Bug #28745

closed

Problem with $GLOBALS['TSFE']->recordRegister

Added by Markus no-lastname-given over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2011-08-04
Due date:
% Done:

100%

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

Description

Content that should be rendered twice will not be shown. For a good explanation see #20541.

Although #20541 is closed, I can reproduce the bug with TYPO3 4.5.4.

Quick fix (taken from #20541 and adjusted to new folder structure) is to find the line "$GLOBALS['TSFE']->currentRecord = $originalRec; // Restore" in
/typo3/sysext/cms/tslib/content/class.tslib_content_content.php and
/typo3/sysext/cms/tslib/content/class.tslib_content_records.php

and add the following lines right after that:

                if ($originalRec)       {
                        $GLOBALS['TSFE']->recordRegister[$originalRec]--;
                }


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #20541: Problem with $GLOBALS['TSFE']->recordRegisterClosed2009-06-02

Actions
Related to TYPO3 Core - Bug #53768: Displaying the same 'Insert Records'-element more than once does not workClosed2013-11-19

Actions
Has duplicate TYPO3 Core - Bug #35266: Nest count not reset upon exit from render()Closed2012-03-27

Actions
Actions #1

Updated by Thorsten Kahler over 12 years ago

  • Category changed from Frontend to Content Rendering
  • Complexity set to medium
Actions #2

Updated by Thorsten Kahler over 12 years ago

  • Status changed from New to Accepted

I can reproduce that recursive re-rendering of the same CE is not possible. E.g.

page = PAGE
page.10 < styles.content.get
page.10.stdWrap.append < styles.content.get

renders the page content only once. Though rendering CEs twice works, e.g.

page = PAGE
page.10 < styles.content.get
page.20 < styles.content.get

We have to decide if we want to enable recursive rendering and, if so, how to prevent infinite loops.

Actions #3

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #4

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #7

Updated by Gerrit Code Review over 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #8

Updated by Gerrit Code Review about 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25512

Actions #9

Updated by Markus Klein about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27515

Actions #11

Updated by Gerrit Code Review about 10 years ago

Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27516

Actions #12

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27515

Actions #13

Updated by Markus Klein about 10 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF