Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module adds a field that allows editors to choose how referenced entities are displayed. It provides a flexible way to control the presentation of referenced content on your site.

Overview

This module defines a simple field type for display mode selection for entity reference fields. This allows an editor to select how they would like the references displayed.

"Display mode" field type: This field allows you to specify a display mode for the rendering of entity reference fields. You can configure available options to show only certain display modes. The user then selects one from these and affects the way your entity reference field renders items.

"Selected display mode" field formatter: This formatter allows you to render referenced entities with a selected display mode. The formatter is available only for entity reference fields where the base entity contains at least one display mode field. When there are more display fields available, you can choose one.

Related Modules

  • Entity reference viewmode selector (D7 only) - This module provides separate display mode selection for every referenced entity. Use our module if you want only one selection per entity reference field.
  • Entity reference multiple display (D7 only) - Provides formatter that let site administrators configure different view modes for groups of entities. Use our module if you want display mode selection for site editors.

Installation

  1. Module can be installed via the standard Drupal installation process.
  2. Go to the "Manage fields" page for an entity.
  3. Add a new field of "Reference" type.
  4. Select "Display mode" in the options page.
  5. You can then adjust the field settings (e.g. default value, excluded or
    included modes).
  6. After saving the field, go to the "Manage form display" tab.
  7. Select the desired widget for the display mode field and save the form.
  8. Go to "Manage display" and find your existing entity reference field.
  9. Choose "Selected display mode" format and save the form again.
  10. That's it. Just edit the entity and select different displays.

Maintainers

These modules are maintained by developers at Morpht. For more information on the company and our offerings, see morpht.com.

Activity

Total releases
3
First release
Jan 2025
Latest release
5 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.5 Stable Feb 1, 2026
2.0.4 Stable Jan 24, 2025
2.0.3 Stable Jan 23, 2025