Part of the Link ecosystem · 35 projects
This module enhances Drupal's link field widget by allowing you to configure how internal links are searched for using autocomplete. It enables the use of Entity Reference selection handlers, such as those provided by Views, to improve the selection process. This offers more flexibility than the default hard-coded results, making it easier to find specific internal content.
Link Selection Handler is a module that provides a field widget for link fields that allows configuration of autocomplete results when searching for internal links.
By default, Drupal link field widgets use a hard-coded entity autocomplete result, which would make finding nodes with the same title difficult.
This allows a link widget to utilize Entity Reference selection handlers such as provided by Views.
Post-Installation
- Enable the module.
- Visit the “Manage form display” page of an entity with a link field.
- Choose “Link with selection handler” from the Widget select list.
- Press the “Edit” button (Gear icon).
- The additional configuration will be displayed similar to how Entity Reference field settings work.
Known issues
- #3365642: Fix field widget settings form to update after handle change. To work around this, simply press the Update button after ensuring valid form values, then press the Edit button again and configure the Reference method settings. This can also be worked around by manually editing the configuration yaml with the appropriate configuration and re-synchronizing configuration.
- As this is its own field widget, other modules that provide alternative field widgets cannot be used in the same form display such as the useful Link Attributes module.
Ask your assistant about Link Selection Handler
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Link ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | 10–11 | Aug 15, 2024 | ||
| 1.0.x-dev | Dev | 10–11 | Jun 8, 2023 |