[TYPO3] Cached output, but need to increase field in DB

R. van Twisk typo3 at rvt.dds.nl
Tue Apr 3 15:21:36 CEST 2007


Matthias Stuebner wrote:
> On Mon, 02 Apr 2007 19:32:40 -0500, R. van Twisk wrote:
>
>   
>> Use a hook,
>> every time a page get's outputted it can call a hook,
>>     
>
> Damn, why didn't I think of hooks, you are right! Thanx.
>
>   
>> I use this hook: contentPostProc_output
>>     
>
> But this one I didn't find so far. Could you point me to where it is
> defined? A search didn't give any result.
>
>   
>> Then your page will alsways be in cache,
>> but you can update your statistics.
>>     
>
> Thanx again for that pointer, I would have missed it.
>
>   

your welcome,

this is the hook I use:

$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][] 
=
    
'EXT:rvt_intellipops/api/class.fe_hooks.php:&user_intellipops_fehooks->contentPostProc_output';

And this is a class to give you an idea:

class user_intellipops_fehooks {
    /*
     * !brief process everything during outputting
     */
    function contentPostProc_output (&$params,&$that) {
        $this -> intelliPops -> setStage(1, $that -> newHash);
        $this -> intelliPops -> autolink( $params['pObj']->content, 
$that -> newHash, $that -> metaCharset);
    }

}


It's part of a extension I am writing...

Ries



More information about the TYPO3-english mailing list