Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

View Mode Selector

Security covered Under active development 1,374 sites

This module provides a field that allows users to select a specific view mode for an entity. This view mode can then be used to display the entity's content, with options for select lists or radio buttons, and even custom icons for radio buttons.

A small module which allows you to change the view mode of an entity.

This module provides a new field type "View mode selector", so just go to "Manage fields" and create a field of that type and choose between a "select list" and a "radio buttons" widget. When you choose "radio buttons" it is possible to upload an icon which will be displayed instead of the view mode name.

In order to display your referenced entities with the new "View mode selector" view mode don't forget to change the view mode on "Manage display" which is used for displaying them.

If Display Suite is enabled, it can also display a live preview of the configured view mode layout. Here is an example:

You can create issues and pull requests on Github.

Drupal 10–11

Ask your assistant about View Mode Selector

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
2
Tracked since
Nov 2023
Latest release
2 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.2 Stable 10–11 Aug 6, 2026
8.x-1.1 Stable 9–10 Nov 1, 2023