Display Suite: Create Custom Layout with Drush

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:03
    I can also use Drush to create a custom Display Suite layout in my theme.
  • 0:08
    So I'm navigated to my themes/ds_layouts directory.
  • 0:13
    Whichever directory you are navigated to when you run this command
  • 0:16
    is where the folder is going to be generated.
  • 0:20
    So, if you are in the wrong place, you can always just move it
  • 0:23
    to the correct place after it's been generated.
  • 0:26
    So, let's take a look at the options for the Drush command "ds-build".
  • 0:31
    I'll type "drush help ds-build".
  • 0:37
    And here are the options. I run "drush ds-build" and then,
  • 0:41
    "My Layout name". This is the human readable name
Loading ...

Display Suite: Create a Custom Layout with Drush

Loading...

Now that we have gained an understanding of how to create a custom layout manually (in the previous tutorial), we’ll look at the drush command ds-build which allows you to quickly scaffold a Display Suite custom layout in your module or theme.

Downloads: 
Log in or sign up to download companion files.
Additional resources: