Extension folder Configuration/TCA

The folder EXT:my_extension/Configuration/TCA/ may contain or override TCA (Table Configuration Array) data.

All files in this directory are automatically included during the TYPO3 bootstrap.

New in version 12.0

Files within Configuration/TCA/ files are loaded within a dedicated scope. This means that variables defined in those files cannot leak to any other TCA file during the TCA compilation process.

Configuration/TCA/<tablename>.php

Configuration/TCA/tablename.php

tablename.php
Scope
extension
Path (Composer)
packages/my_extension/Configuration/TCA/tablename.php
Path (Classic)
typo3conf/ext/my_extension/Configuration/TCA/tablename.php

One file per database table, using the name of the table for the file, plus ".php". Only for new tables, provided by the extension itself. Must not be used to change existing tables provided by other extensions.

Configuration/TCA/Overrides/somefile.php

Configuration/TCA/Overrides/somefile.php

somefile.php
Scope
extension
Path (Composer)
packages/my_extension/Configuration/TCA/Overrides/somefile.php
Path (Classic)
typo3conf/ext/my_extension/Configuration/TCA/Overrides/somefile.php

For extending existing tables.

General advice: One file per database table, using the name of the table for the file, plus .php. For more information, see the chapter Extending the TCA array.