Entity view modes

Dave Reid's alternative to Display Suite and other display modules.

The Drupal 7 successor to Build modes which will allow administrators to define custom view modes for entities. Custom entities are added to the entity registry via hook_entity_info_alter() so they are available to any code that uses entity_get_info() to provide a list of view modes for an entity. This includes node and user reference fields, Views, etc.

It also ensures consistency for template suggestions for all entity types, so that you can use any of the template patterns, in order of most specific to least specific:

  1. entity-type__id__view-mode
  2. entity-type__id
  3. entity-type__bundle__view-mode
  4. entity-type__bundle
  5. entity-type

Tags

Internal References

External References

Article Type

Drupal Module: Specialty