[Typo3-dev] Parsing/modifying all HTML output in an extension

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Wed Nov 16 21:48:21 CET 2005


Dimitri Tarassenko wrote:
> Hello All,
> 
> I am writing an extension where I need to parse _everything_ that was
> output by everything else in TYPO3 before returning it to a client,
> kind of like a last filter before the content is delivered.
> 
> The way I got it working right now is this:
> 
> includeLibs.blahblah = EXT:blahblah/pi1/class.tx_blahblah_pi1.php
> tmppage < page
> tmppage.stdWrap.postUserFunc = tx_blahblah_pi1->main
> page >
> page < tmppage
> 
> In ext_typoscript_setup.txt, then modifying $content in tx_blahblah_pi1->main()
> 
> However, this will potentially conflict with other extensions that may
> do the same.
> 
> 2 questions:
> 
> 1) does anyone know any extensions this might conflict with?
> 2) is there any other, better way to do this?
> 
> Thanks!
> 
> --
> Dimitri Tarassenko



Why do you want to implement it on the TypoScript level at all, if it 
simply should render everything? You could implement it in a later place.

How do you want it to interact with the caching mechanisms? Should it 
render before or after caching?

I think you could look into the tidy extension then. It offers both 
action before and after caching. So you should be able to learn from it.

Elmar











-- 
Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
Spain, Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.




More information about the TYPO3-dev mailing list