[TYPO3-english] Adding a post-processing method after page has been rendered

Alexandre Gravel-Raymond a.gravel-raymond at alienor.net
Fri Mar 26 18:23:50 CET 2010


Le 24/03/2010 17:15, Christine Gerpheide a écrit :
> Hi Dmitry,
>
> Thank you very much.  I've tried it out now, and the only thing I notice is
> that it doesn't include FE plugin content (like felogin, this is rendered
> later.. I guess?), but for my purposes that's actually OK.
>
> Thanks again,
> Christine
>
> 2010/3/24 Christine Gerpheide<cgerpheide at gmail.com>
>

Yes, It's because this hook is called after cached object are rendered 
but before _INT object (COA_INT, USER_INT), which are calculated at 
every page show.

In the case you need to also modify the output of _INT type objects, the 
hook
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']
is the last to be executed if I remember well (and it is called after 
_INT content is rendered).
You can register the hook the same way as contentPostProc-all.

Alexandre Gravel-Raymond


>> Dmitry -- Perfect, thank you!  I'll try this out ASAP.
>>
>> Christine
>>
>> 2010/3/24 Dmitry Dulepov<dmitry.dulepov at gmail.com>
>>
>>> Hi!
>>>
>>> Christine Gerpheide wrote:
>>>> Does anyone have an idea about how this might be possible?
>>>
>>> You need this hook:
>>>
>>>
>>>
>> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all']
>>>
>>> In that hook you manipulate $GLOBALS['TSFE']->content.
>>>
>>> Set hook like this in ext_localconf.php:
>>>
>>>
>>>
>> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][$_EXTKEY]
>>> =
>>>
>>>
>> 'EXT:yourextkey/class.tx_yourextkey_hook.php:tx_yourextkey_hook->contentPostProcessing';
>>>
>>> --
>>> Dmitry Dulepov
>>> TYPO3 expert / TYPO3 security team member Read more @
>>> http://dmitry-dulepov.com/
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>



More information about the TYPO3-english mailing list