Review main Merged

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

Josua Vogel 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
    • Georg Ringer +1
  • Verified V +2 Done
    • Garvin Hicking +2
    • Georg Ringer +1
    • core-ci +1 CI

Issues 1

Files 14

Review log 1216

  1. Josua Vogel uploaded patch set 1 08/27/26, 09:55

  2. core-ci voted on patch set 1 V +1 08/27/26, 10:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107246

  3. Georg Ringer voted on patch set 1 CR +1 V +1 08/27/26, 13:40

  4. Georg Ringer rebased onto patch set 2 CR +1 V +1 08/27/26, 14:27

  5. core-ci voted on patch set 2 V +1 08/27/26, 14:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107273

  6. Josua Vogel updated the commit message in patch set 3 V +1 09/01/26, 16:21

  7. core-ci voted on patch set 3 V +1 09/01/26, 16:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107502

  8. Garvin Hicking commented on patch set 3 09/01/26, 16:50

    drag-drop.ts:347

    IMO unneeded comment

    paste.ts:104

    IMO unneeded comment

    GeneratorFrontend.php:155

    love this styleguide demo, thanks!

    page.tsconfig:54

    IMO both comments can be cleared, the identifier is expressive enough I'd argue
  9. Garvin Hicking commented on patch set 3 09/01/26, 16:50

    (Haven't tested yet but this sounds great to complement the feature, thanks!)
  10. Josua Vogel uploaded patch set 4 V +1 09/02/26, 05:42

  11. Josua Vogel commented on patch set 4 09/02/26, 05:42

    drag-drop.ts:347 Reply

    Done

    paste.ts:104 Reply

    Done

    page.tsconfig:54 Reply

    Done
  12. core-ci voted on patch set 4 V +1 09/02/26, 05:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107560

  13. Garvin Hicking voted on patch set 4 CR +1 V +1 09/02/26, 09:05

  14. Georg Ringer voted on patch set 4 CR +1 V +1 09/04/26, 11:25

  15. Garvin Hicking voted on patch set 4 CR +2 V +2 09/14/26, 10:51

  16. Garvin Hicking merged patch set 5 09/14/26, 11:20