O'Reilly logo

Drupal 7 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a custom panel layout

The myriad layouts that the Panels module comes packaged with are usually sufficient for most requirements. That said, themers wanting to display content using more interesting and complex layouts can also roll their own. While it used to be the case that custom panel layouts needed to be added in as a plugin, this is no longer necessary.

In this recipe, we will make use of the Panel module's Layout designer to create our own custom layout designed for a page requiring a lot of regions.

Getting ready

It is a good idea to sketch an outline of our layout either on paper or in a graphics editor to get an idea of what we want prior to fiddling with the Layout designer. For example, the layout that we are looking to create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required