View mode

Component ID

2711797

Component name

View mode

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

342

Component created

Component changed

Component body

View mode provides a field type to store view modes.

This can be used to allow users to pick from a set of preselected view modes, and is best integrated with Display Suite or to provide custom logic based on user-selected view modes.

This provides an alternative to storing view modes in an options field that cannot be changed after the field contains data and is especially useful when you want to give editors the possibility to select view modes but don't want to use Panels or give access to place entities on your page in a certain view mode.

Development is happening at https://github.com/marzeelabs/view_mode.