Exporting Panels Configuration using Features

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:02
    Exporting Panels Configuration using Features
  • 0:05
    With Amber Matz
  • 0:07
    AMBER MATZ: There are several ways to export panels into code,
  • 0:10
    especially so that the configuration can
  • 0:12
    be version controlled and deployed.
  • 0:15
    One of the ways to export panels configuration
  • 0:17
    is through the Features module.
  • 0:19
    With Panels and Features, we can create a feature that includes
  • 0:22
    variance with their selection rules, context,
  • 0:25
    content panes, as well as additional components we may

Exporting Panels Configuration using Features

Loading...

Creating pages with Panels involves a lot of configuration which can take a lot of time and effort. In order to avoid re-doing all that work on another instance of the site, we can export this configuration into code using Features and deploy it in the usual way (using git or FTP).

In this lesson, we will:

  • Export a custom panels page
  • Take inventory of all panes
  • Create a new Feature to export configuration

By the end of this lesson, you will be able to export a basic panel page configuration that contains a View using Features.

Demo site log in:

  • Navigate to /user
  • Login with admin/admin
Downloads: 
Log in or sign up to download companion files.
Additional resources: