[TYPO3-mvc] RFC #12332: cObject-ViewHelper causes bug when used in cached plugin

Thomas Heilmann heilmann at mindscreen.de
Mon Jan 17 19:41:18 CET 2011


Hi all,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://forge.typo3.org/issues/12332

Branches:
trunk

Problem:
I described the problem last friday in a post: When used in a cachable
controller action, the cObject of the plugin gets modified. The wrapping
div of the plugin gets the uid of the containing page, not of the
content element. Thus, if you insert the plugin two times on the same
page, you get two times the same id (with default TS setup).

Solution:
Cloning the cObject in the constructor fixes the problem for me, but I
am not sure if it has side effects or poses performance issues.

Thanks for your comments!

Regards,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list