[TYPO3-english] Extending TCA the 6.1 way

Christian Kuhn lolli at schwarzbu.ch
Tue Oct 1 16:13:51 CEST 2013


On 10/01/2013 02:39 PM, Markus Klein wrote:
> Still one could do other stuff before returning the array in the end.

Please don't! Core does not support any code magic within those TCA 
files. If you still do that it may break any time.

Simple rule:
* Full new table definitions go to Configuration/TCA/{tablename}.php
* Extending existing tables is done within ext_tables.php with API calls.


Actually all this stuff (LocalConfiguration, TCA table definition, 
ext_autoload, ...) *should* be not be PHP but YAML to prohibit "code" 
and enforce "configuration" only, but we do not have such a layer ... 
Flow is way more clever in this area and secures the flow core code from 
the packages much better this way.


Regards
Christian


More information about the TYPO3-english mailing list