Closed sabbelasichon closed 3 years ago
Deprecation: #80000 - InlineOverrideChildTca
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.7/Deprecation-80000-InlineOverrideChildTca.html
.. include:: ../../Includes.txt
============================================
See :issue:80000
80000
Description
===========
These :php:TCA :php:type=inline properties have been deprecated and superseded with the more
TCA
type=inline
general property :php:overrideChildTca:
overrideChildTca
foreign_types
foreign_selector_fieldTcaOverride
foreign_record_defaults
Impact
======
It is now possible to override display (FormEngine) related columns properties and the types section of
child :php:TCA from within the parent :php:TCA. This is also allowed in a
parents :php:['types']['columnsOverrides'] section.
['types']['columnsOverrides']
Affected Installations
======================
Instances using one of the above inline properties should adapt to the new :php:overrideChildTca property.
Migration
=========
A :php:TCA auto-migration is in place. It will transfer the old settings to the new property as
shown below and logs deprecation entries if there is no :php:overrideChildTca defined. This allows extension
authors to keep both the old and the new settings to support CMS v7 and v8 at the same time without
having deprecations logged.
foreign_types before and after transition to overrideChildTca:
.. code-block:: php
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'foreign_types' => [ 'aForeignType' => [ 'showitem' => 'aChildField', ], ], ... ], ], ... ],
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'overrideChildTca' => [ 'types' => [ 'aForeignType' => [ 'showitem' => 'aChildField', ], ], ], ... ], ], ... ],
foreign_selector_fieldTcaOverride before and after transition to overrideChildTca:
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'foreign_selector' => 'uid_local', 'foreign_selector_fieldTcaOverride' => [ 'config' => [ 'appearance' => [ 'elementBrowserType' => 'file', ], ], ], ... ], ], ... ],
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'foreign_selector' => 'uid_local', 'overrideChildTca' => [ 'columns' => [ 'uid_local' => [ 'config' => [ 'appearance' => [ 'elementBrowserType' => 'file', ], ], ], ], ], ... ], ], ... ],
foreign_record_defaults before and after transition to overrideChildTca:
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'foreign_record_defaults' => [ 'aChildField' => 42, ], ... ], ], ... ],
'columns' => [ 'aField' => [ 'config' => [ 'type' => 'inline', 'overrideChildTca' => [ 'columns' => [ 'aChildField' => [ 'config' => [ 'default' => 42, ], ], ], ], ... ], ], ... ],
.. index:: Backend, TCA
Resolved by #1522
Deprecation: #80000 - InlineOverrideChildTca
https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.7/Deprecation-80000-InlineOverrideChildTca.html
.. include:: ../../Includes.txt
============================================
Deprecation: #80000 - InlineOverrideChildTca
============================================
See :issue:
80000
Description
===========
These :php:
TCA
:php:type=inline
properties have been deprecated and superseded with the moregeneral property :php:
overrideChildTca
:foreign_types
foreign_selector_fieldTcaOverride
foreign_record_defaults
Impact
======
It is now possible to override display (FormEngine) related columns properties and the types section of
child :php:
TCA
from within the parent :php:TCA
. This is also allowed in aparents :php:
['types']['columnsOverrides']
section.Affected Installations
======================
Instances using one of the above inline properties should adapt to the new :php:
overrideChildTca
property.Migration
=========
A :php:
TCA
auto-migration is in place. It will transfer the old settings to the new property asshown below and logs deprecation entries if there is no :php:
overrideChildTca
defined. This allows extensionauthors to keep both the old and the new settings to support CMS v7 and v8 at the same time without
having deprecations logged.
foreign_types before and after transition to overrideChildTca:
.. code-block:: php
.. code-block:: php
foreign_selector_fieldTcaOverride before and after transition to overrideChildTca:
.. code-block:: php
.. code-block:: php
foreign_record_defaults before and after transition to overrideChildTca:
.. code-block:: php
.. code-block:: php
.. index:: Backend, TCA