Example Online Member View Mode Switcher Rule
Example Field Settings for View Mode Switcher Reference Field
Example of selecting the View Mode Switcher rule when editing a node.

Allows the view mode to be switched based on the user's role per entity.

The purpose of this module is to define "Rules", like the one in the images below, that can be applied to individual entities.

Setup / Use Steps

  1. Define at least one View Mode Switcher Rule.
  2. Add an Entity Reference field to your node that references these rules.
  3. When you edit an entity you can select your "rule".

Whenever a visitor tries to view that entity (node) using the original view mode, the view mode may be switched based on their role.

Example Use Case

I have used this module to act as a paywall that will only allow users with a certain role to view certain "premium" articles. If they do not have the "premium" role they will be shown a teased version of the content when they try to view the article.

Supporting organizations: 
Supported Initial Development

Project information

Releases