[TYPO3-dev] Change calling order of hooks
Xavier Perseguers
xavier at typo3.org
Tue Oct 2 18:43:23 CEST 2012
Hi,
> To post-process javascript includes, I've registered a hook for
>> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']
>> ['t3lib/class.t3lib_pagerenderer.php']['render-preProcess']
>
> Now we're using some more extensions, e.g. nr_cdn, which also hook into
> there and convert the Javascript URLs to absolute URLs on a CDN.
>
> I have to make sure that my new hook is called *after* all the
> other "render-preProcess" hooks. How can I do that?
>
> What can I do?
Either make sure your extension is loaded *after* the other one that
already hooks there or force it to be loaded at the end (respectively at
the beginning) by setting
'priority' => 'top', // 'bottom'
in your ext_emconf.php.
HTH
--
Xavier Perseguers
Release Manager TYPO3 4.6
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-dev
mailing list