Bug #14748
closed"Insert record" content not always displayed
0%
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)
Updated by Mathias Schreiber over 18 years ago
TYPO3 Version too old.
The reported version is no longer maintained.
If this bug still persists in 4.0.1, please re-open it again and set the field "Product Version" to the corresponding version.