Issue Feature Under Review Quiet

#111076Offer suggestions for link fields in the link browser

Benjamin Kott 10/15/26, 10:05 updated 10/23/26, 12:44

Description

Problem

The valuePicker of TCA type=link renders a select box next to the field. It was copied from type=input when the link element was split off and never got a design of its own:

  • The select box is not accessible.
  • It duplicates what the link browser is for: picking a link.
  • It only inserts the plain value, so a predefined link cannot carry a target, class or title, and the editor cannot adjust it before setting it.

Proposal

Link fields configure suggestions. The link browser offers them in a “Suggestions” tab of their own, each with its label, its link and an icon for its link type.

'config' => [
    'type' => 'link',
    'suggestions' => [
        ['label' => 'Home page', 'value' => 't3://page?uid=1'],
        ['label' => 'Hotline', 'value' => 'tel:+4930123456'],
        ['label' => 'Button to TYPO3.org', 'value' => 'https://typo3.org _blank "btn btn-primary" "Visit TYPO3.org"'],
    ],
],
  • A suggestion is a preset for the tab of its link type. Selecting it opens that tab with the link, its attributes and the label as title filled in, where the editor sets it as usual.
  • A current link that is one of the suggestions opens the “Suggestions” tab and is marked there.
  • FormEngine forwards the suggestions signed with an HMAC, so the link browser only shows what the field defines.
  • A new PSR-14 event ModifyLinkSuggestionsEvent lets extensions add, replace or remove suggestions depending on the edited record.
  • The valuePicker of type=link is migrated to suggestions and deprecated. A field that disables the link browser ('appearance' => ['enableBrowser' => false]) loses the items, which the migration message says. The value picker of the other types is not affected.

Related

Replaces the link part of #107591, which originally proposed dropping the value picker from the color, link, number and text types.

Reviews 1

History 04

  1. Gerrit Code Review pushed patch set 13 for main to change 90874 status New Under Review <span data-processor="relativetime" data-value="2026-10-15T10:28:06+00:00" > 10/15/26, 10:28 </span>