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

Replacing the site contact page with a panel

The Contact module's contact form is, by default, rather static and plain with no straightforward option to add new content or to reorganize it. In this recipe, we will replace the standard contact page with a panel thereby allowing us to take advantage of the power of Panels.

Getting ready

The Contact module is assumed to be enabled and configured with a couple of categories. We will be embedding the default contact form in one of our new panel's panes.

To demonstrate how using panels allows us to easily add new content, we will be embedding a view into one of its panes. The view is to be titled Addresses and should return a list of custom contact nodes containing sample contact information where the ...

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