Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: MCP Sentinel 2.29.0 — Minor update available for module mcp_sentinel (2.29.0). Release: Audit Chain 1.10.9 — Minor update available for module audit_chain (1.10.9). Release: Menu Autopilot 1.4.7 — Minor update available for module menu_autopilot (1.4.7). Release: FileGate 1.11.3 — Minor update available for module file_gate (1.11.3). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Entity Autocomplete Anchor

No security coverage

Part of the Entity ecosystem · 235 projects

View on drupal.org

The entity autocomplete anchor module provides a widget that allows users to add
anchors to links set using the entity autocomplete widget.

Problem: when using a link field with the entity autocomplete widget you aren't able to provide an anchor (hash part, or fragment) to the resulting url anymore.

Solution: when the user selects an entity reference a new field for the anchor is shown.
The result URL is: /node/1#section

If you are using the link_attributes module and want to add links to specific paragraphs, this module allows you to do that without hardcoding the urls.

The module provides two implementations:
1. as a separate widget (Link with anchor)
2. as a hook that alters the default link widget

The widget is provided for edge cases when the default link widget cannot be used.
It works the same but is not recommended because it extends the Link Widget class and
overwrites the formElement method. If the overwritten method is updated in a future
core release, the link widget provided by this module will not be updated automatically.
For these type of situations the hook implementation should be toggled using a config
(to be implemented in a future release).

Update: The hook now works with the Linkit widget as well

Upadate 2: I decided to deprecate development on this module in favor of integrating its functionality in the linkit module (more specifically linkit_field module)
More details:
https://www.drupal.org/project/linkit/issues/3223919#comment-14974327
https://www.drupal.org/project/linkit_field/issues/3349013

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.

Activity

Tracked releases
1
Tracked since
Mar 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-beta6 Pre-release Mar 16, 2023