[TYPO3-dev] ext_localconf.php
Ries van Twisk
typo3 at rvt.dds.nl
Sat Jun 10 18:11:17 CEST 2006
Sven, this is what I use:
class user_intellipops_fehooks {
function insertPageIncache ($that,$timeOutTime) {
}
function contentPostProc_all (&$params,&$that) {
}
function contentPostProc_cached (&$params,&$that) {
}
function contentPostProc_output (&$params,&$that) {
}
}
/*
// Tp be put in ext_localcong.php
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['insertPageIncache'][]
=
'EXT:rvt_intellipops/api/class.fe_hooks.php:&intellipops_fehooks';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][]
=
'EXT:rvt_intellipops/api/class.fe_hooks.php:&intellipops_fehooks->contentPostProc_all';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-cached'][]
=
'EXT:rvt_intellipops/api/class.fe_hooks.php:&intellipops_fehooks->contentPostProc_cached';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][]
=
'EXT:rvt_intellipops/api/class.fe_hooks.php:&intellipops_fehooks->contentPostProc_output';
*/
> Hi all
>
> I'm working on an extension that's hooking up to the contentPostProc-
> output hook in class.tslib_fe.php in order to do some really last
> minute postprocessing. I'm not sure if the extension category
> "frontend" (in the kickstarter) is a wise choice, however, I'm
> hooking in ext_localconf.php as does tt_news for instance.
>
> When the extension is loaded, however, it's ext_localconf.php is not
> executed unless I do something with plugin.myplugin in a TS-template.
> Is there a way to make sure ext_localconf.php (or another script name
> I don't know of) is included even without the extension being
> mentioned in any TS-template?
>
> Basically I'd like to find a solution so all the user has to do is
> load the extensions without the need to add any line of TS to make it
> work.
>
> Here's the bonus question, not important though:
>
> Here's the bonus question: contentPostProc-output is a user function
> hook, so the code linking up to it looks as follows ...
>
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']
> ['contentPostProc-output'][] = 'EXT:myext/
> tx_myplugint_tslib_fe.php:user_myfunc';
>
> Can I do the same with some OO as well? The following, however,
> causes an error "function not found" ...
>
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']
> ['contentPostProc-output'][] = 'EXT:myext/
> class.tx_myplugin_tslib_fe.php:tx_myplugin_tslib_fe->user_myfunc';
>
> Many thanks for your hints, -sven
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
--
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web: http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
=== Work:
email: ries at livetravelguides.com
web: http://www.livetravelguides.com
More information about the TYPO3-dev
mailing list