Allow to select reference method in link field type for internal links

Created on 7 July 2023, about 1 year ago
Updated 5 February 2024, 7 months ago

Problem/Motivation

As link widget for internal links allows to have entity reference autocomplete, it would be nice to have opportunity to select the reference method the same way as it is possible for entity reference field. This way it would be possible to easily find content that is needed using, for example, views entity reference handler.

Steps to reproduce

Standard Drupal installation, article content type, add link field allowing both internal and external links or only internal.

Proposed resolution

Add 'handler' and 'handler_settings' field settings to link field type.

Remaining tasks

Patch needs an update
Before after screenshots in the IS or linked
CR update

User interface changes

Field settings for link field type would have "Reference method" setting, the same as entity reference field.

screenshots are in the change record

API changes

None

Data model changes

None

Release notes snippet

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
LinkΒ  β†’

Last updated 3 days ago

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024