maijs / view_mode_selector

:rainbow: Contains the View Mode Selector module for Drupal.

Home Page:https://drupal.org/project/view_mode_selector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Current Maintainers:

View Mode Selector creates a new field type called View mode selector which will override the view mode of an entity.

Installation

  1. Install the module the drupal way.

  2. Go to Manage fields and just select View mode selector as field type.

  3. Now you can choose between a Select list and a Radio buttons. BTW the Radio buttons widget also allows you to upload an icon for a view mode which will be used instead of the view mode label in the widget form.

  4. Select view modes that should be provided.

  5. Create or edit an entity with the field attached and select a view mode.

Troubleshooting

When the view mode of an entity did not change as expected a solution could be to check which module are implementing the hook_entity_view_mode_alter, maybe another one overrides the view mode after View mode selector did it.

About

:rainbow: Contains the View Mode Selector module for Drupal.

https://drupal.org/project/view_mode_selector


Languages

Language:CSS 86.9%Language:PHP 13.1%