[TYPO3-dev] scheduler and doNotLoadInFE

Thomas Kowtsch thomas at kowtsch.de
Sun Apr 3 20:43:14 CEST 2011


Hi again,

On 03.04.2011 08:40, Jigal van Hemert wrote:
> I think it requires a bit of DIY to actually load the scheduler. Looking
> at the code in t3lib_extMgm when "loading" the extensions it checks the
> extension type, build the paths to it and creates the temp_CACHED*
> files. These are used for the actual loading.

The basic idea was adding scheduler to 
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extList_FE'] would do the magic.

> Since scheduler isn't included in the frontend temp_CACHED* file you
> need to do all the checks yourself and add scheduler to the loaded
> extensions:
>
> // find type of ext and determine paths
> // add these to the global TYPO3_LOADED_EXT
> $temp_extKey = 'scheduler';
> if (@is_dir(PATH_typo3conf . 'ext/' . $temp_extKey . '/')) {
> $GLOBALS['TYPO3_LOADED_EXT'][$temp_extKey] = array('type' => 'L',
> 'siteRelPath' => 'typo3conf/ext/' . $temp_extKey . '/', 'typo3RelPath'
> => '../typo3conf/ext/' . $temp_extKey . '/');
> } elseif (@is_dir(PATH_typo3 . 'ext/' . $temp_extKey . '/')) {
> $GLOBALS['TYPO3_LOADED_EXT'][$temp_extKey] = array('type' => 'G',
> 'siteRelPath' => TYPO3_mainDir . 'ext/' . $temp_extKey . '/',
> 'typo3RelPath' => 'ext/' . $temp_extKey . '/');
> } elseif (@is_dir(PATH_typo3 . 'sysext/' . $temp_extKey . '/')) {
> $GLOBALS['TYPO3_LOADED_EXT'][$temp_extKey] = array('type' => 'S',
> 'siteRelPath' => TYPO3_mainDir . 'sysext/' . $temp_extKey . '/',
> 'typo3RelPath' => 'sysext/' . $temp_extKey . '/');
> }
>
> After this t3lib_extMgm::extPath() and extRelPath know about the loaded
> extension and you can use them to include the necessary files (e.g.
> ext_localconf.php). This last part is probably necessary because it is
> not included in the frontend temp_CACHED* file.
> Also the autoload features of TYPO3 should also work as expected.

Thanks a lot - I tested several different configurations and it works 
like a charme :-)

> (Code untested)

But working :^)

Many thanks,
	Thomas




More information about the TYPO3-dev mailing list