[TYPO3-core] RFC: #11397: [Feature] Add class for render HTML header/footer for BE and FE

Steffen Kamper info at sk-typo3.de
Thu Aug 13 18:08:25 CEST 2009


Hi,

after talking to Benni i redesigned it.
I renamed the new class to t3lib_pageRender

* Now this is a (abstract) base class.
* template and tslib_fe extend the base class
* all methods are available in php and typoscript

This simplifies drastically the possibilities in typoscript for adding 
CSS anf Javascript. See additional typoscript-textfile for examples

I dropped some flags from prior patch and used different functions for 
adding data to footer, this looks much simpler.

The render method now renders
class->render() => renders complete page
class->render(1) => renders header part
class->render(2) => renders footer part

Render the parts is needed for BE modules, which collect all the content 
parts of the page and prints it. FE use the complete render method now, 
new BE modules could use the same. For compatibility this must stay this 
way.

All settings work the same as before, so it's 100% compatible.
Please check it out.

I also added unit tests for it.

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pageRender_typoscript.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090813/aee612c3/attachment.txt 


More information about the TYPO3-team-core mailing list