Review 14.3 Merged

95960[BUGFIX] Derive page module view mode from the current page

Oli Bartsch CR +2 V +2 Hard +255 −35 updated 09/23/26, 08:08

Commit message

The "view mode" of the page module is stored per backend user, but
was evaluated with two different criteria: the mode menu offered
language comparison only for pages that actually have translations,
while rendering, doc header buttons and the language selector read the
stored value directly. The menu additionally reset that value after it
had already been persisted, so the reset never survived the request.

A page without translations in a multi language site was therefore
drawn through the comparison path, collapsing a multi column backend
layout into a single column, while its doc header acted as if layout
mode were active. Blinding the comparison mode via page TSconfig was
ignored for rendering for the same reason.

The available modes and the resulting effective mode are now determined
in one place and used by every consumer. The stored preference is never
overwritten, so a page without translations falls back to layout mode
without losing the preference for the next page that has translations.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 46

  1. Oli Bartsch commented on patch set 1 09/21/26, 13:16

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 09/21/26, 13:25 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108951

  3. Oli Bartsch uploaded patch set 2 V -1 09/22/26, 06:02

  4. core-ci voted on patch set 2 V +1 09/22/26, 06:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108968

  5. Oli Bartsch voted on patch set 2 CR +2 V +2 09/23/26, 08:08

  6. Oli Bartsch merged patch set 3 09/23/26, 08:08