Project

General

Profile

Actions

Bug #14748

closed

"Insert record" content not always displayed

Added by old_pneff over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2005-05-23
Due date:
% Done:

0%

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

Description

When the same "insert record" content elment is displayed more than once, it is only rendered correctly the first time. A content element may for example be rendered multiple times when a different style sheet has to be added to the page depending on whether a column is used on a page. Example code:

temp.HTML = COA
temp.HTML.1 =
temp.HTML.1.value = {$HTMLrelPath}{$HTMLtempl01}
temp.HTML.1.value.override = {$HTMLrelPath}{$HTMLtempl02}
temp.HTML.1.value.override.if.isTrue.cObject < styles.content.getRight

Later "styles.content.getRight" is of course used again to fill the content in. And there, the shortcut elements are not displayed anymore.

The culprit is the variable tslib_fe->recordRegister. Namely the following code in class.tslib_content.php (ca. line 1163):

if (!$GLOBALS['TSFE']->recordRegister[$conf['table'].':'.$row['uid']]) {
....
}# else debug($GLOBALS['TSFE']->recordRegister,'CONTENT');

When I comment this if-statement out, all works fine. But I guess, this is not the right solution to it.

I posted this on the typo3-dev mailing list and did not get a reply. http://lists.netfielders.de/pipermail/typo3-dev/2005-May/010211.html

(issue imported from #M1097)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20541: Problem with $GLOBALS['TSFE']->recordRegisterClosed2009-06-02

Actions
Actions

Also available in: Atom PDF