Show Menu
Cheatography

Drupal 6 Theme Variables Cheat Sheet by

Drupal Version 6 Theme Variables for common (and core) tpl.php template files.

page.t­pl.php

$logo The path to the logo image, as defined in theme config­ura­tion.
$site_name The name of the site, empty when display has been disabled in theme settings.
$site_­slogan The slogan of the site, empty when display has been disabled in theme settings.
$mission The text of the site mission, empty when display has been disabled in theme settings.
$searc­h_box HTML to display the search box, empty if search has been disabled.
$prima­ry_­links An array containing primary navigation links for the site, if they have been config­ured.
$secon­dar­y_links An array containing secondary navigation links for the site, if they have been config­ured.
$left The HTML for the left sidebar.
$bread­crumb The breadcrumb trail for the current page.
$title The page title, for use in the actual HTML content.
$help Dynamic help text, mostly for admin pages.
$messages HTML for status and error messages. Should be displayed promin­ently.
$tabs Tabs linking to any sub-pages beneath the current page (e.g., the view and edit tabs when displaying a node).
$content The main content of the current Drupal page.
$right The HTML for the right sidebar.
$node The node template file.
$feed_­icons A string of all feed icons for the current page.
$foote­r_m­essage The footer message as defined in the admin settings.
$footer The footer region.
Version 6
 

node.t­pl.php

$title the (sanit­ized) title of the node.
$content Displays either a list of node teasers (e.g. default front page) or the full content of one node. When combined with other contri­buted modules this variable may also printing out other “stuff” like a calendar or a list of catego­ries.
$picture The authors picture of the node.
$date Formatted creation date.
$links Themed links like "Read more", "Add new commen­t", etc.
$name Themed username of node author.
$node_url Direct url of the current node
$terms the themed list of taxonomy term links.
$submitted themed submission
inform­ation.
$comme­nt_­count Number of comments attached to the node.
$created Time the node was published formatted in Unix timestamp.
Version 6

block.t­pl.php

$block­->s­ubject Block title
$block­->c­ontent Block content
Version 6
 

Drupal Coding Standards

               
 

Comments

I've been looking for something like this for a while. Many, many thanks!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Modules and Themes Listed in Drupal User's Guide Cheat Sheet
          Drupal Theme Pre-launch Cheat Sheet
          drush commands Cheat Sheet

          More Cheat Sheets by emmajane

          Modules and Themes Listed in Drupal User's Guide Cheat Sheet
          Drupal Theme Pre-launch Cheat Sheet