Community Documentation

Full page layout and section-related Snippets

Last updated August 27, 2009. Created by Dublin Drupaller on January 23, 2006.
Edited by bekasu, jhodgdon, add1sun, Robert Castelo. Log in to edit this page.

This section outlines and provides snippets for customizing your full page layout for certain page types. Useful if you want to have different variations of your theme for different sections of your site.

Full page layouts are controlled by the page.tpl.php layout file when using the PHPTemplate theme engine.

For Drupal 4.7.x and earlier you need to instruct template.php to load a custom page-layout.tpl.php file.

Scroll down for some example snippets, that you can copy-and-paste and use in your custom page-type.tpl.php layout files.

For more information on page templates, refer to the PHPTemplate documentation.

About this page

Audience
Designers/themers

Theming Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here