Breaking: #78384 - Frontend ignores TCA in ext_tables.php¶
See Issue #78384
Frontend requests no longer load
ext_tables.php in requests. The only exception is if a backend user is
logged in to the backend at the same time to initialize the admin panel or frontend editing.
Since especially a not yet cached frontend call relies on initialized
$GLOBALS['TCA'], changes to
ext_tables.php are now ignored and may fail.
Extensions that still set, add or remove settings in
$GLOBALS['TCA'] need to be adapted. The install tool
provides test “TCA ext_tables check” to find such extensions.
ext_tables.php neither writing directly to
$TCA is allowed, nor writing indirectly
ExtensionManagementUtility methods. An example list of calls and their new positions:
$GLOBALS['TCA']['someTable'] = `: A full table `TCAis added. This must be moved to
ExtensionManagementUtility::addStaticFile(): A static file is registered in
sys_template. Add this to
ExtensionManagementUtility::addTCAcolumns(): Columns are added to a table. Add this to
ExtensionManagementUtility::addToAllTCAtypes(): Fields are added to types. Add this to
ExtensionManagementUtility::addPiFlexFormValue(): A new flex from in
tt_contentis registered. Add this to
ExtensionManagementUtility::addPlugin: A new type item is added to the
tt_contenttable. Add this to