#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.