Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Linked Entity Reference

65 sites Security covered Drupal 10–11
View on drupal.org

This module adds a field type that allows you to link an entity to an arbitrary URL. This means you can reference an entity and provide a specific URL for that link at the field item level, enabling cases like linking real estate listings to specific photos or skills to external resources.

Linked Entity Reference provides a new field type which has a combination of link and entity reference capabilities. It lets you relate an entity with an arbitrary URL.

Motivation

In most situation entities are linked to the entity page (or to the file URI in case of media), but there are many situations where entities need to be linked to a different URL (internal or external).

One option is to add a link field to that entity plus some custom coding/theming to make that link as a wrapper to the entity, but that approach has a limitation: the link is part of the entity, so you can not link the same entity to different URLs on different situations. With this module, the URL is part of the field tha tlinks to the entity, so you can reference an entity and give it a URL to the link at field item level. URL's are always optional.

Use cases

There are many situations where this module can be used:

  • Real state features from a fixed collection linking them to pictures.
  • Select skills on a CV linking them to external resources.
  • Link media items to any page
  • Link reusable teasers...

Installation

  • Install the module with composer
    composer require drupal/linked_entity_reference
    
  • Enable the module.
    drush en linked_entity_reference
  • Add a field of type "Linked entity reference" to a fieldable entity bundle, such as node type, block type, etc.
  • Configure the form display. There are 2 widgets provided:
    • Autocomplete: Supported when referencing all entity types.
    • Media library: Supported when referencing media entities.
  • Configure the view display. There are 2 field formatters provided:
    • Label
    • Rendered entity

    Both work as their entity reference equivalent field formatters.

Slick and D11

There is a bug that may break Slick Carousel. See #3467129: Incompatibility with Drupal 11/jQuery 4.

Depends on

Dependencies of the latest stable release

  • link Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2025
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Sep 11, 2025
1.0.0 Stable 10–11 Jun 26, 2025
1.0.0-alpha4 Pre-release 10–11 May 29, 2025