[TYPO3] User-Change Code AFTER page is loaded from cache

Mark Schmidt markschmidt at inbox.lv
Mon Jan 29 00:23:10 CET 2007


Hey Ries!

Thanks a lot for your response - I was in holidays just up until now :)

I'll try it rigth away! Thanks!

Mark

R. van Twisk wrote:
> hey Mark,
> 
> we might have talked on the #typo3 channel already, but use this hook 
> (add it to ext_localconf.php)
> 
> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] 
> =
>   'EXT:<YOUR EXTENION NAME>/user_FILENAME.php:user_FUNCTIONNAME;
> 
> 
> Then add this file in your extension directory
> 
> user_FILENAME.php
> 
> Within that file add a function like this:
> 
> function user_FUNCTIONNAME(&$params,&$that) {
> 
>       $params['pObj']->content = str_replace('SEARCH', 'REPLACE', 
> $params['pObj']->content);
> 
> }
> 
> 
> good luck,
> Ries
>> Hi there!
>>
>> I have a rather special problem, as I need to substitute a dummy-Tag 
>> within a page AFTER everything else is done in Typo3 - even the 
>> caching-algorithms.
>>
>> So the idea is this:
>>
>> 1.) Typo3 does the generating of the page
>> 2a.) Page is generated or
>> 2b.) Page is fetched from cache
>> 3.) My SCript subsitutes one or more markers in the HTML
>> 4.) HTML is echoed out.
>>
>> Can anyone give me a hint how to do this? Where is the actual HTML 
>> Content printed out on screen?
>>
>> Thanks a lot for your help!
>>
>> Mark
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>   
> 
> 


More information about the TYPO3-english mailing list