Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Dynamic View Mode module creates a "dynamic" view mode that gets replaced by a view mode specified in the node edit form.
Instructions
- Download and enable Dynamic View Mode
- Set the content types that will have a dynamic view mode. This can be done in the Display settings section of the Content type edit page. View modes available can be limited and a default can be set for each content type
- Edit a node and select the view mode
- Now, for example, in a view of rendered entities set the view mode to "Dynamic view mode"
- Or in the display settings of an entity reference field