[TYPO3-dev] ext_localconf.php
Sven Schwyn
typo3 at bitcetera.com
Sat Jun 10 17:28:58 CEST 2006
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
More information about the TYPO3-dev
mailing list