[TYPO3-dev] Include TypoScript Code at the end of all other static code

Patrick Rodacker patrick.rodacker at the-reflection.de
Wed May 4 14:04:15 CEST 2011


Hi list,

I need to include TypoScript code from an extension which is able to
override all other TypoScript code included before.

I found out that there is no way to use the setting 'static_file_mode'
in the 'sys_template' record appropriately, but that there is the
following hook available in the function
t3lib_TStemplate::includeStaticTypoScriptSources() :

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSourcesAtEnd']

What I do not understand so far is how to add the typoScript code in the
class registered at the hook.

A workaround would be to use the files

ext_typoscript_constants.txt
ext_typoscript_setup.txt

within the extension and make sure the extension is installed after all
other extension. But since there is the hook, I thought implementing it
would be the nicer approach.

Any help appreciated ;-)

Best regards
Patrick




More information about the TYPO3-dev mailing list