Webinar: Customize Content Pages using Display Suite in Drupal 8

If you ever need to modify content pages, Display Suite is a good choice. It offers a lot of flexibility without learning a brand new interface. You just use the standard “Manage display” page to select a layout and move fields into regions.

UPDATE May 2017: Layout plugin is no longer required from Drupal 8.3 and onwards. Just install Layout Discovery which comes with Drupal core.

Yesterday, I presented a webinar on how to use Display Suite in Drupal 8. The webinar went for around 50 minutes and I covered the following:

  • What’s new in Drupal 8 (2:20)
  • How to set up a Display Suite layout on a view mode (8:20)
  • How to change the wrapper elements (11:03)
  • How to add custom CSS classes (14:15)
  • How to use Display Suite fields (16:10)
  • How to use the “Display Suite Switch View Mode” sub-module (29:00)
  • And finally, how to override a layout (35:47)

Extra Resources

  1. Using Display Suite in Drupal 8: How to Customize Content Pages
  2. Using Display Suite in Drupal 8: How to Use Display Suite Fields
  3. Using Display Suite in Drupal 8: How to Use Switch View Mode Sub-module
Ivan Zugec

About Ivan Zugec

Ivan is the founder of Web Wash and spends most of his time consulting and writing about Drupal. He's been working with Drupal for 10 years and has successfully completed several large Drupal projects in Australia.

4 thoughts on “Webinar: Customize Content Pages using Display Suite in Drupal 8”

  1. When attempting to install the Display Suite dependency module “layout” an error is thrown:
    “layout-8.x-1.0-alpha1.tar.gz does not contain any .info.yml files”

    When I opened the zip file and inspected the directory tree, is truly does not have any info.yml files.

    Even though this is named an 8x file it does not seem to have the required files.

    Could you specify if the file you are referring to is indeed at drupal.org/project/layout or are you referring to another project with a similar name?

  2. Thanks for the good webinars.
    I m using ds in drupal 8 as well sometimes I need to move to panels and pages manager for the clear rules and conditions so as to display a variant according to roles
    like a node for front page on anonymous user and another on authenticated one .
    Is there a way to do the same in ds.?
    I tried with node access and permissions but so muddling.

    1. Hi m’hamed,

      You can achieve similar functionality with custom code. DS doesn’t offer anything like this through its interface.

      Create your variants as different view modes then implement hook_entity_view_mode_alter to programmatically switch the view mode. A good example of this is the “Display suite switch view mode” sub-module.

      Check out the example: http://cgit.drupalcode.org/ds/tree/modules/ds_switch_view_mode/ds_switch_view_mode.module?h=8.x-2.x#n36


Leave a Comment

You have to agree to the comment policy.