[TYPO3-core] RFC #16580: Feature: Implement render-postProcess Hook

Jeff Segars jsegars at alumni.rice.edu
Tue Dec 7 19:44:17 CET 2010


On 12/2/10 3:24 AM, Morton Jonuschat wrote:
> This is an SVN patch request.
>
> Type: Feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=16580
>
> Branches:
> TYPO3_4-4 & trunk
>
> Problem:
> Postprocessing and/or modification of page content, CSS, JS and misc.
> HTML tags used for page generation is only doable by XCLASSing
> t3lib_pageRenderer. This solution is not very elegant since XCLASSing is
> limited to a single class extendig the functionality. Due to this I
> propose to implement a hook comparable to render-preProcess that has
> access to some (or even all) relevant variables/content right before the
> markerArray gets assigned.
>
> Solution:
> The attached patch implements above mentioned hook with access to each
> and every variable used in the process of generating the content for the
> marker array.
>
> With kind regards,
>
> Morton Jonuschat
> Buttgereit und Heidenreich GmbH Agentur für Kommunikationsdesign
> www.gute-botschafter.de <http://www.gute-botschafter.de/>
>
>

Hey Morton,
Thanks for your patch!  Since this is a new hook, we can't add it to the 
4.4 branch.  We've already hit the feature freeze for 4.5, but let's see 
if Steffen and Ernesto are OK with hook additions :)

Overall, +1 on reading and I agree its nice to have the symmetry of pre 
and post processing via hook. I think it would make sense to use the 
exact same params array in pre and post processing.  Your new array is 
more complete, so it could be defined once at the top of render() and 
used for both hooks. Does that sound ok to you?

Thanks,
Jeff


More information about the TYPO3-team-core mailing list