Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
TCAdefaults
This allows to set or override the default
values of TCA
fields that is available
for various TCA types, for instance for type=input.
The full path of a setting include the table and the field name: TCAdefaults.
This key is also available on User TSconfig level, the order of default values when creating new records in the backend is this:
- Value from
$GLOBALS
['TCA'] - Value from user TSconfig
- Value from page TSconfig (these settings)
- Value from "defVals" GET variables
- Value from previous record based on useColumnsForDefaultValues
Note
TCAdefaults
is not applied to FlexForm values.
These can only be addressed via <default>
elements within the
FlexForm data structure.
Example: Do not hide newly created pages by default
TCAdefaults.pages.hidden = 0