Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

vmbr

5 sites No security coverage
View on drupal.org

The View Mode By Role (VMBR) module allows site administrators to assign
custom view modes for both users and content (nodes) based on user roles.

With this module, you can:

  • Define a default user view mode for each role.
  • Define a default content (node) view mode for each role.
  • Assign weights to roles so that, when a user has multiple roles, the role with the highest priority determines the view mode.
  • Fall back to the standard full view mode when no custom setting is defined.

Key Features

  • Adds configuration fields on each role edit form to select:
    • User View Mode
    • Content View Mode
    • Role Priority Weight
  • Automatically alters entity rendering to apply the configured view mode for logged-in users.
  • Supports Drupal 8, 9, 10, and 11.

Example Use Cases

  • Show different profile layouts for editors vs. subscribers.
  • Display different node layouts (teasers, compact, or custom view modes) depending on whether a visitor is anonymous, a customer, or an administrator.
  • Prioritize roles (e.g., if a user is both “Customer” and “VIP,” ensure the VIP view mode takes precedence).

Requirements

  • None — works with core entity and role system.

Compatibility

  • Works with all entity view modes registered for user and node entities.
  • Fully compatible with Drupal’s role system and multi-role assignments.

Activity

Total releases
2
First release
Aug 2025
Latest release
7 months ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Aug 23, 2025
1.0.x-dev Dev Aug 23, 2025