[TYPO3-dev] Calling $this->cObj->CONTENT from inside a plugin denied

JoH asenau info at cybercraft.de
Mon Mar 1 14:51:31 CET 2010


> Commented with: "If the currentRecord is set, we register, that this
> record has invoked this function. It's should not be allowed to do
> this again then!!"
>
> Why is there this restriction? Why am I not allowed to render a
> CONTENT element inside a plugin?

I guess this is just to avoid endless loops of plugins calling themselves
again and again.

Bu of course you are allowed to render a CONTENT element within a userFunc.
This is what we do i.e. within the ICEbox, which is using a CONTENT element
to get the associated inline elements. But whithin this CONTENT element you
are not allowed to render the element that triggered the userFunc.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com






More information about the TYPO3-dev mailing list