Drupal 7: Custom Node View Modes
mearra weist auf ein spannendes neues Feature in Drupal 7 hin.
Before, Drupal had only two “hard-coded” node view modes, the full node view and the teaser view. These two provided us just enough flexibility for most simple content listings, but quite often we needed to turn to Views in Fields mode to get more flexibility. By flexibility in this case I mean displaying the same content in different ways in different contexts.
In Drupal 7 we can create additional view modes by simply implementing
hook_entity_info_alter()in our custom module.After defining the new view mode, we can go to content type’s “Manage Display” page and select which fields to display plus some additional options for fields, like which image style to use for image fields, for example.
Sehr cool!

