Review main Ready for review

97426[FEATURE] Support TCAdefaults for FlexForm fields

Benni Mack CR 0 V 0 Normal +233 −4 updated 11/09/26, 11:08

Commit message

The default value of a FlexForm field could only be set by the
<default> element of its data structure. TCAdefaults only applied
to real table columns, so integrators had no way to preset FlexForm
fields per page or user.

TCAdefaults now accepts the path known from TCEFORM for FlexForm
fields, in Page TSconfig as well as in User TSconfig:

  TCAdefaults.tt_content.pi_flexform.news_pi1.sDEF.settings\.limit = 5

For new records, TcaFlexProcess hands these values as default to
the FlexForm segment, so they are processed like a <default> of
the data structure. Page TSconfig overrides User TSconfig, both
override the data structure default. Existing records and fields
within section containers are not affected.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/26/97426/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/26/97426/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 3

Issues 1

Files 4

Review log 23

  1. Benni Mack uploaded patch set 1 11/09/26, 10:56

  2. Benni Mack marked it ready for review 11/09/26, 10:58

  3. core-ci voted on patch set 1 V +1 11/09/26, 11:08 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113653