Review main Ready for review Stale

95038[TASK] Enforce doktype of page translations

André Buchmann CR 0 V 0 Normal +241 −6 updated 07/31/26, 16:29

Commit message

Page translations could declare a doktype different from their
default language page record. The frontend, the backend modules
and the link handling however all assume that a page keeps its
type across languages.

Examples:

* PageInformationFactory dispatches link and shortcut handling
  on the doktype and hands the overlaid record to
  PageTypeLinkResolver, which throws a RuntimeException when the
  translation is not of type "Link".
* A translation of a mount point page is mounted like its default
  language page, the "Mount point" field of the translation is
  not even editable, so the value is silently ignored.

Instead of teaching every consumer to deal with per-language page
types, doktype is now set to l10n_mode=exclude, so the value of
the default language page is kept for all its translations.
l10n_display=defaultAsReadonly keeps the field visible in
FormEngine, but no longer editable.

An upgrade wizard is added to align the doktype of already
diverged page translations with their default language page,
since the field can no longer be corrected in the backend.

This mirrors the decision taken for the type field of tt_content,
where CType and colPos have been set to l10n_mode=exclude with

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 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/38/95038/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/38/95038/2 && 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 6

Issues 1

Files 8

Review log 24

  1. André Buchmann uploaded patch set 1 07/31/26, 13:52

  2. core-ci voted on patch set 1 V -1 07/31/26, 14:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105754

  3. André Buchmann uploaded patch set 2 V -1 07/31/26, 16:20

  4. core-ci voted on patch set 2 V +1 07/31/26, 16:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105755