Issue Feature Closed

#107679Allow alternate retrieval methods for records in LinkBuilder

Francois Suter 10/13/25, 08:25 updated 12/02/25, 13:05

Description

For some particular use cases, it would be useful that the \TYPO3\CMS\Frontend\Typolink\DatabaseRecordLinkBuilder allow for own methods of retrieving the record pointed to in the typolink. For this, a new PSR-14 event is introduced.

Reviews 1

Files 1

History 312

  1. Francois Suter commented and changed attached record_links_1.0.0_202510271557.zip <span data-processor="relativetime" data-value="2025-10-27T14:57:59+00:00" > 10/27/25, 14:57 </span>

    This a bit hard to test, as you need a pretty peculiar setup, but I created a small test extension which makes it easier (but still requires some manual tweaking).

    The test extension adds a table called “Items” and provides a full Link Handler configuration, backend and frontend.

    Steps to test:

    1. apply the patch
    2. install the extension
    3. create 2 “Items” records this way:
      1. the first one has name “Foo” and code “bar”
      2. the second one has name “Bar” and code “foo”
    4. in a simple text content element, create a link to “Foo” and a link to “Bar”
    5. directly in the database, edit the bodytext of the content element and change to t3:://record links by adding “&code=foo” to the link to “Bar” and “&code=bar” to the link to “Foo”
    6. view the page in the frontend. You should see debugging output from the event listener and the links should have been made based on matching “code” rather than matching the uid.
  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-10-27T16:50:08+00:00" > 10/27/25, 16:50 </span>

    Applied in changeset commit:842487262d97a2f8349a45f9ef79f96528dca4f1.