Review 14.3 Merged

95810[TASK] Offer content element column restrictions in page module UI

Garvin Hicking CR +2 V +2 Normal +245 −3 updated 09/14/26, 11:20

Commit message

Backend layout columns can restrict content element types through the
"allowedContentTypes" and "disallowedContentTypes" column
configuration. So far these restrictions were only enforced server
side in the DataHandler: users could still trigger a copy, paste or
drag-and-drop into a forbidden column and only afterwards received a
generic error notification ("... couldn't be executed due to
disallowed value(s).").

The restrictions are now reflected in the page module before the
action is performed:

* The content element CType and the per-column allowed/disallowed
  lists are rendered into the page module markup.
* Drag-and-drop only reveals drop zones in columns that accept the
  dragged element; forbidden columns offer no drop target.
* The "paste into" / "paste after" buttons are only rendered for
  columns that accept the element on the clipboard.

The DataHandler restriction hook stays in place as a server-side
fallback, e.g. for API, CLI or context menu based operations.
Workspaces are respected, since all CType sources use the workspace
overlay of the affected records.

The styleguide extension gains a dedicated "Content restrictions"
demo page whose backend layout showcases an allowed and a
disallowed column.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 1

Files 14

Review log 57

  1. Garvin Hicking commented on patch set 1 09/14/26, 10:52

    Cherry Picked from branch main. The following files contain Git conflicts: * typo3/sysext/backend/Classes/View/BackendLayout/Grid/GridColumn.php
  2. Garvin Hicking commented on patch set 2 09/14/26, 10:53

    Published edit on patch set 1.
  3. Garvin Hicking marked it ready for review 09/14/26, 10:54

  4. core-ci voted on patch set 2 V +1 09/14/26, 11:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108520

  5. core-ci voted on patch set 1 V -1 09/14/26, 11:11 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108518

  6. Garvin Hicking voted on patch set 2 CR +2 V +2 09/14/26, 11:20

  7. Garvin Hicking merged patch set 3 09/14/26, 11:20