O'Reilly logo

Drupal 6 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

Chapter 4. Templating Basics

We will be covering the following recipes in this chapter:

  • Changing the layout of a page using page.tpl.php
  • Customizing the appearance of a particular node type
  • Customizing the appearance of a specific node
  • Theming made easy using the Devel module
  • Theme overrides using the Theme developer module
  • Listing all available variables in a template file
  • Displaying the profile name instead of a user name
  • Theming the maintenance page

Introduction

Drupal's design stresses the separation of logic from presentation with the former being handled by modules and the latter by themes. Theme functions, commonly those that are prefixed with theme_, and theme template files act as a bridge between the two as they are designed to be overrideable. ...

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