Review main Abandoned

96102[FEATURE] Add t3://content link type for content elements

Benni Mack CR 0 V -1 Expert +1538 −30 updated 11/10/26, 14:58

Commit message

Links to content elements were stored as page link with a numeric
fragment, for example "t3://page?uid=13#123". TYPO3 silently
interpreted the fragment as uid of a content element and rendered the
anchor "#c123", with the prefix hardcoded in many places.

Content elements can now be linked with the dedicated link type
"t3://content?uid=123". The page the element is located on is
determined when the link is rendered, so the link keeps working when
the element is moved to another page. The anchor is generated in one
place and can be changed by the new PSR-14 event
ModifyContentElementAnchorEvent.

The link type is registered by EXT:frontend and all related classes
live in EXT:frontend/Classes/Links/Content. It is supported by the
soft reference parsers, the link validator and the backend. The link
browser creates the new link type on the page tab, unless a field
restricts the allowed link types.

A new row updater migrates existing links to the new link type, if the
content element is located on the linked page. Existing links continue
to work unchanged and the generated output stays identical.

Review

  • Code review CR 0
  • Verified V -1
    • core-ci -1 CI

Issues 1

Files 27

Show 7 more files

Review log 916

  1. Benni Mack uploaded patch set 1 09/26/26, 13:47

  2. Benni Mack marked it work in progress 09/26/26, 13:47

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

  4. Benni Mack uploaded patch set 2 V +1 09/28/26, 11:43

  5. core-ci voted on patch set 2 V +1 09/28/26, 11:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109414

  6. Benni Mack rebased onto patch set 3 V +1 09/29/26, 08:51

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

  8. Benni Mack uploaded patch set 4 V +1 09/30/26, 20:57

  9. core-ci voted on patch set 4 V +1 09/30/26, 21:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109708

  10. Benni Mack uploaded patch set 5 V +1 09/30/26, 21:30

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

  12. Benni Mack rebased onto patch set 6 V -1 10/01/26, 07:24

  13. core-ci voted on patch set 6 V +1 10/01/26, 07:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109757

  14. Benni Mack uploaded patch set 7 V +1 10/01/26, 10:57

  15. core-ci voted on patch set 7 V -1 10/01/26, 11:04 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109786

  16. Benni Mack abandoned the change 11/10/26, 14:58

    wont do