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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Entity Reference View Mode Selector

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

This module allows content editors to choose how each individual referenced entity displays by adding a view mode selector to entity reference fields. This lets editors select different display options, like teaser or card, for each item within a field, without duplicating content.

Give content editors the power to choose how each referenced entity displays. This module adds a "View Mode" selector to entity reference fields, allowing different view displays (teaser, card, full, etc.) to be selected per-item without duplicating content.

Features

  • Per-item view mode selection: Choose a different view display for each entity in a multi-value reference field
  • Per-bundle allowed view modes: Restrict which view modes are available to editors on a per-bundle basis — e.g., only offer "Card" and "Full" for one paragraph type while offering "Teaser" and "Default" for another, all on the same field
  • Content editor friendly: Simple dropdown appears below each entity reference selection in the editing form
  • Dynamic options: Available view modes update automatically based on the referenced entity's bundle
  • Works with existing view displays: Uses your already-configured view modes - no extra setup required
  • Paragraph support: Optional submodule (ervms_paragraphs) adds support for paragraph reference fields
  • Nested field support: Works with entity reference fields inside paragraphs
  • CSS classes included: Formatters add view-mode-specific classes for easy theming

Example use case: You have a "Related Content" field that references articles. Some articles should display as teasers, others as cards, and others as full content - all within the same field on the same page, without creating duplicate content or building complex Views.

Post-Installation

Configuration requires two steps:

Step 1: Enable on your field

  1. Go to Structure > Content types > [Your Type] > Manage fields
  2. Edit your entity reference field
  3. Find the "View Mode Selector" fieldset and check "Enable view mode selector"
  4. Save

Step 1b (optional): Restrict allowed view modes per bundle

  1. On the same field settings page, expand the "View Mode Selector" fieldset
  2. When enabled, collapsible groups appear for each target bundle
  3. Check specific view modes to restrict what editors see for that bundle
  4. If none are checked for a bundle, all view modes are shown
  5. "Default" is configurable per bundle and can be excluded

Step 2: Configure the display formatter

  1. Go to Structure > Content types > [Your Type] > Manage display
  2. Change your entity reference field's formatter to "Entity Reference View Mode"
  3. For paragraph fields, use "Paragraph View Mode" formatter instead
  4. Save

The view mode selector will now appear when editing content. Only view displays that are enabled on the target entity type will be available as options, further filtered by any per-bundle restrictions you configured.

Additional Requirements

  • Paragraphs - If you're using paragraph-based content, enable the included ervms_paragraphs submodule for full paragraph support including nested entity references and compatibility with the Paragraphs widget's collapsible interface
  • Entity Reference Field Override - Companion module by Click Here Labs that lets editors override specified fields in referenced entities within the reference context, without changing the referenced entities.

Similar projects

  • Display Suite - Provides extensive display management but at the field level rather than per-reference-item. Does not allow selecting different view modes for individual items within a single field.
  • View Mode Field - Allows selecting a view mode for the current entity being edited, not for referenced entities.
  • Entity View Fallback - Handles fallback logic when view modes don't exist, but doesn't provide editor selection.

This module is unique in providing per-item view mode selection directly in the content editing experience, giving editors granular control over how each referenced entity renders.

Supporting this Module

This module is maintained by Click Here Labs. If you find it useful, consider:

  • Contributing issues and patches
  • Writing documentation or tutorials
  • Sponsoring development of new features

Community Documentation

  • Full documentation available in the module's README.md file
  • API functions for programmatic access to view mode data
  • Troubleshooting guide included for common issues

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
10
Tracked since
Feb 2026
Latest release
5 days ago
Releases (12 mo)
10 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.8 Stable 10–11 Aug 26, 2026
1.0.7 Stable 10–11 Aug 26, 2026
1.0.6 Stable 10–11 Jun 17, 2026
1.0.5 Stable 10–11 Apr 22, 2026
1.0.4 Stable 10–11 Mar 23, 2026
1.0.3 Stable 10–11 Mar 19, 2026
1.0.2 Stable 10–11 Mar 19, 2026
1.0.1 Stable 10–11 Feb 26, 2026
1.0.0 Stable 10–11 Feb 23, 2026
1.x-dev Dev 10–11 Feb 23, 2026