#107081Add options to predefine link target and class in LinkBrowser
Description
*Problem*
Currently, editors must manually select link attributes like target (_blank, _self) and CSS classes for each link they create in the LinkBrowser. This becomes repetitive and time-consuming, especially when following consistent linking policies (e.g., always opening external links in new tabs or applying specific styling classes).
*Proposed Solution*
Add the ability to preconfigure default link target and class attributes via TSconfig. The configuration supports both global defaults (applying to all link types) and handler-specific overrides for fine-grained control.
Configuration Example
# Global defaults for all link types TCEMAIN.linkHandler.properties.target.default = _self TCEMAIN.linkHandler.properties.class.default = default-link # Handler-specific overrides TCEMAIN.linkHandler.url.target.default = _blank TCEMAIN.linkHandler.url.class.default = external-link TCEMAIN.linkHandler.file.class.default = file-downloadBenefits
- Improved editor workflow and user experience
- Reduced repetitive tasks for editors
- Consistent link behavior and styling across the site
- Hierarchical configuration: global defaults with specific overrides
- Maintains flexibility for manual override when needed
- Follows TYPO3’s configuration patterns
- LinkBrowser functionality
- TSconfig processing
- Link handlers: page, file, url
- Link attribute handling (target, class)
*Implementation Notes*
This feature extends the existing link handler configuration structure with a hierarchical approach where properties.* serves as global fallback and handler-specific settings provide overrides.
I would add an Patch for this.
Reviews 1
History 59
-
Gerrit Code Review pushed patch set 1 for main to change 90058 status
NewUnder Review <span data-processor="relativetime" data-value="2025-07-13T03:38:09+00:00" > 07/13/25, 03:38 </span> -
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-07-13T07:20:16+00:00" > 07/13/25, 07:20 </span>
-
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-07-13T09:55:54+00:00" > 07/13/25, 09:55 </span>
Never mind, I misread that this affects the “regular” LinkBrowser, not the RTE one. Nice to bring parity to configuring this via Page TSConfig! :)
-
Michael Staatz changed subject
Add an option to predefine link target in LinkBrowserAdd options to predefine link target and class in LinkBrowser description <span data-processor="relativetime" data-value="2025-07-13T14:47:28+00:00" > 07/13/25, 14:47 </span> -
Gerrit Code Review pushed patch set 2 for main to change 90058 <span data-processor="relativetime" data-value="2025-07-13T14:52:38+00:00" > 07/13/25, 14:52 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 90058 <span data-processor="relativetime" data-value="2025-07-13T14:55:37+00:00" > 07/13/25, 14:55 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 90058 <span data-processor="relativetime" data-value="2025-07-14T18:55:03+00:00" > 07/14/25, 18:55 </span>
-
Michael Staatz commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-09-18T21:10:08+00:00" > 09/18/25, 21:10 </span>Applied in changeset commit:59d9da236370abb75caed959b439b81d39afaa99.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:57:57+00:00" > 12/02/25, 13:57 </span>
I couldn’t check this yet but did https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/7.2/Feature-59646-AddRteConfigurationPropertyButtonsLinkTypePropertiesTargetDefault.html#feature-59646-add-rte-configuration-property-buttons-link-type-properties-target-default get removed at some point, this reads a bit familiar?