Views Override View Mode

Screenshot of the Views Override View Mode block settings.

Views Override View Mode lets you make a views block display's view mode configurable for each individual block via the block's configuration settings.

Dependency: ctools_views, which lets you expose additional views display configuration options as block configuration options.

Use case

  • A site's Articles content type has 4 custom view modes (e.g. small, medium, large, extra_large)
  • Editors use Layout Builder to place 'recent articles' blocks all over the site.
  • Editors should be able to select which view mode to use for any given block.

Views Override View Mode on drupal.org