[TYPO3-core] RFC: Bug #6456: IRRE - Palettes are not rendered correctly on nesting records using the same table

Ingmar Schlecht ingmar at typo3.org
Tue Oct 30 17:30:10 CET 2007


Martin Kutschker wrote:
> Oliver Hader schrieb:
>> This is a SVN patch request.
>>
>> Problem:
>> On nesting records of the same table, e.g. parent record is tt_news that
>> has child records of tt_news (e.g. "related news"), the palettes are not
>> correctly rendered and "disappear".
>>
>> Solution:
>> The array t3lib_TCEforms::$palettesRendered tracks palettes for a table
>> that were already rendered. In the IRRE situation, the children fill
>> these array and fool the parent. The solution is to temporarily store
>> this information, render the child and restore this information.
>>
>> Comments:
>> The patch adds a new method to t3lib_TCEforms_inline and I'd like to
>> commit this also for the TYPO3_4-1 branch. Some of you might think
>> "well, new features/methods are not allowed in current stable" - but in
>> this case it's not a feature but more a wrapper.
> 
> To me this is a private method and therefor not part of the API.

You mean $tceforms->palettesRendered is a private class variable, right?
Well, I think it should just be mentioned in a comment close to the 
declaration of var $palettesRendered that it's accessed from IRRE and 
therefore kind of public.

cheers
Ingmar


More information about the TYPO3-team-core mailing list