Issue Bug New Stale

#110488Restrict TCAdefaults to specific TCA types

Daniel Windloff 08/15/26, 09:20 updated 08/15/26, 09:20

Description

Via TCAdefaults (set in PageTSConfig or UsrTsConfig) it is possible to set or overwrite default values for every TCA column type
(see https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/UserTsconfig/TcaDefaults.html).

This option should be in line with the TCA default value configuration for each column type.
That’s why it should be only evaluated for some TCA types.

Furthermore, I would suggest removing the possibility to set default values for password columns.

Suggestion

_.TCA types Allow TCAdefaults Reason
category Yes
check Yes
color Yes
country Yes
datetime Yes
email Yes
file No No Tca default value allowed
flex Yes
folder No No Tca default value allowed
group Yes
imageManipulation No No Tca default value allowed
inline No No Tca default value allowed
input Yes
json Yes
language No No Tca default value allowed
link Yes
none No No persistance
number Yes
passthrough Yes
password No Should not be possible to store defaults in plaintext for password columns
radio Yes
select Yes
slug No `generatorOptions.field` should be used to define proper default values
text Yes
user Yes
uuid No No Tca default value allowed, and it should be generated; it does not make sense to set to a fixed value

Depends on:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/90484

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Restrict TCAdefaults to specific TCA types Resolves: #110488 Releases: main