Domain View Modes

Component ID

1415022

Component name

Domain View Modes

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2236

Component created

Component changed

Component body

This module creates additional view modes for all entities. There is one view mode created per domain per existing view mode.

If a corresponding view mode for a domain is enabled on a content type, this will be automatically used to regenerate the content items (nodes) view. This option can be turned off in the domain settings page (see warning below). Other entities are not set up to automatically use these additional view modes.

Warning
Overriding view modes should be done early in the entity processing, but (for nodes at least) Drupal 7 does not support dynamically altering of the view mode. So these are rebuilt using hook_entity_view_alter(). This means that all node views are generated twice and could potentially be a performance issue.

Lodge your support to #1154382: View mode no longer can be changed to help resolve this issue.

You must have the Entity API and Domain Access modules enabled to use this module. This has only been tested against the latest Domain Access module, version, 7.x-3.3.