[TYPO3-dev] Main Module Creation

Jason Alexander jalexander at digipen.edu
Thu Dec 10 18:28:02 CET 2009


Thanks Andreas I give this a go. 
                                                            _______
Jason Alexander
jalexander at digipen.edu
Web Applications Developer
DigiPen, Institute Of Technology











On Dec 9, 2009, at 2:08 PM, Andreas Wagner wrote:

> Hi,
> 
> This is how I do it in an extension of mine. In ext_tables.php:
> 
> // add BE modules after file module
> if (TYPO3_MODE == 'BE')	{
> 	if (!isset($GLOBALS['TBE_MODULES']['myMainModule']))	{
> 		$temp_TBE_MODULES = array();
> 		foreach($GLOBALS['TBE_MODULES'] as $key => $val) {
> 			if ($key === 'file') {
> 				$temp_TBE_MODULES[$key] = $val;
> 				$temp_TBE_MODULES['myMainModule'] = $val;
> 			} else {
> 				$temp_TBE_MODULES[$key] = $val;
> 			}
> 		}
> 		$GLOBALS['TBE_MODULES'] = $temp_TBE_MODULES;
> 		unset($temp_TBE_MODULES);
> 	}
> 	t3lib_extMgm::addModule('myMainModule', '', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod_main/');
> 	t3lib_extMgm::addModule('myMainModule', 'mySubModule', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod_sub/');
> 	t3lib_extMgm::addModule('myMainModule', 'mySubModule2', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod_sub2/');
> }
> 
> Best regards,
> 
> Andreas





More information about the TYPO3-dev mailing list