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: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). 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. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Usage Milestone: Devel PHP Module devel_php crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Reference by view mode

2 sites No security coverage Drupal 11 · not 10
View on drupal.org

This module allows entity reference fields to be configured to select entities based on their view modes. Instead of manually choosing bundles, you select one or more view modes, and the module automatically limits the available entities to those that support the chosen view modes. This ensures that referenced entities will always have a compatible display format without requiring manual configuration updates.

This module adds a new EntityReferenceSelection plugin that lets you configure entity reference fields by view mode. Instead of manually selecting bundles, you choose one or more view modes (e.g. "Card", "Teaser") and the plugin automatically limits the reference field to bundles that support those view modes.

Features

When configuring the field entity reference, you can select view modes. And no longer needs updating the configuration when the underlaying entity gets support for that view mode.

Configuration

At the confugration screen for fields of the type "entity reference" you have a Reference method option from this module.
There you can select wich view modes you want, and it calculates the bundles that will be used at selection time.
The config will save the view modes you select, the default plugin uses bundles. But at runtime it still filters towards bundles.

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2025
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0 Stable 11 Nov 29, 2025