[TYPO3-dev] Override TCA with help of ext_tables.php in TYPO3 6.2
    Stefan Frömken 
    froemken at gmail.com
       
    Tue Oct 22 16:45:32 CEST 2013
    
    
  
Hello,
with your new informations I have searched the sourcecode and found this 
method:
public function loadExtensionTables($allowCaching = TRUE) {
	Utility\ExtensionManagementUtility::loadBaseTca($allowCaching);
		Utility\ExtensionManagementUtility::loadExtTables($allowCaching);
	$this->executeExtTablesAdditionalFile();
	$this->runExtTablesPostProcessingHooks();
	return $this;
}
As you can see, after loading extTables.php there is a cool to 
runExtTablesPostProcessingHooks().
So I have solved my problem with help of this hook in my ext_localconf.php:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['extTablesInclusion-PostProcessing'][] 
= 
'EXT:dam_falmigration/Classes/Hooks/TcaCategory.php:Tx_DamFalmigration_Hooks_TcaCategory';
Then in /Hooks/TcaCategory.php:
class Tx_DamFalmigration_Hooks_TcaCategory implements 
\TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface {
	/**
	 * Function which may process data created / registered by extTables
	 * scripts (f.e. modifying TCA data of all extensions)
	 *
	 * @return void
	 */
	public function processData() {
	 
$GLOBALS['TCA']['tt_content']['columns']['categories']['config']['treeConfig']['appearance']['maxLevels'] 
= 12;
	}
}
Now I see in categoryTree my records of level 6, too.
It works. Thank you all.
Stefan
    
    
More information about the TYPO3-dev
mailing list