Using Display Suite in Drupal 8: How to Use Switch View Mode Sub-module
In this tutorial series on using Display Suite, we’ve cover the two fundamental use-cases of the module: how to modify layouts and use Display Suite fields.
Now we’ll take a closer look at one of its sub-modules: “Display Suite Switch View Mode”.
The “Display Suite Switch View Mode” module allows an editor to switch which view mode is used on a content page. By default, Drupal will use the “Full content” view mode (if enabled) on content page, i.e., “node/1”.
But what if you want to choose between two different “Full content” view modes? Well this module has you covered.
So instead of being stuck with a single view mode, you could have one for a layout with a sidebar and another for pages with go full width.
In this tutorial, you’ll learn how to configure and use the”Display Suite Switch View Mode sub-module.