Drupal 7 Theming Cheat Sheet

block.tpl.php variables $block_html_id $block_id $block_zebra $block->delta $block->module $block->region $content $classes $classes_array $id $is_admin $is_front $logged_in $title $title_prefix $title_suffix comment.tpl.php variables $author $changed $classes $content $created $new $permalink $picture $signature $status $submitted $title $title_prefix $title_suffix html.tpl.php variables $classes $css $rdf_namespaces $grddle_profile $head $head_title $head_title_array $language $language->language $language->dir $page_top $page $page_bottom $styles $scripts node.tpl.php variables $classes $classes_array $comment A unique HTML id. Incremental position of the block. Increases each output. Outputs either odd or even for each block region. An ID for the block. The module that generated the block. The block region embedding the current block. The content of the block. String of CSS classes. Array of HTML class attribute values. Same as $block_id, but independent of any block region. TRUE when the current user is an administrator. TRUE if the current page is the front page. TRUE when the current user is logged in. The title of the block. Array containing output prepended by modules. Array containing output appended by modules.

Compiled by: Dale Brendan

The author of the comment. Formatted date and time of when the comment was updated. String of CSS classes. An array of comment items. Formatted date and time of when the comment was created. New comment marker. Link directly to a specific comment. The author's picture. The author's signature. The status of the comment (published, unpublished, preview) Submission information of both the author and creation date. The linked title of the comment. Array containing output prepended by modules. Array containing output appended by modules.

String of CSS classes. An array of CSS files for the current page. All RDF namespace prefixes used in the HTML document. A GRDDL profile allowing agents to extract RDF data. Markup for the HEAD section, including: meta, keywords, etc. Displays the site name and page title in the head of the document. An array containing the string parts used to construct the $head_title. The language object in which the site is being displayed. The textual representation of the display language. For example, en or es . Whether the display language is left to right or right to left . Initial markup for mockups that alter the page. Must be output first. The rendered page content. Final closing markup from modules that altered the page. Output last. Style tags necessary to import all CSS files for the page. Script tags needed to loaded all javascript files and settings for the page.

String of CSS classes. Array of HTML class attribute values. Flag for the comment settings of the node.

Increases each output. The themed list of taxonomy terms. The node object. Whether the node is flagged as published . Array containing output appended by modules. Submission information created from $name and $date. TRUE if the current page is the front page. HTML for status and error messages. The themed username of the node authour. TRUE when the current user is an administrator.php variables *Identical to page. TRUE when the current user is an administrator. The name of the website. Whether the node is flagged sticky . The breadcrumb trail for the current page.$comment_count $content $created $date $display_submitted $id $is_admin $is_front $logged_in $name $node $node_url $page $promote $status $sticky $submitted $readmore $teaser $terms $title $title_prefix $title_suffix $type $uid $user_picture $view_mode $zebra maintenace. The node author's picture. Actions local to the page.tpl.php variables $action_links $base_path $breadcrumb $directory $is_admin $is_front $feed_icons $front_page $highlight $logged_in $logo $main_menu $messages $node $secondary_menu $site_name $site_slogan $tabs $title_prefix $title $title_suffix region. The User ID of the node's author. The formatted creation date of the node. The content for this region. Array containing output appended by modules.tpl.tpl. TRUE if the teaser content cannot hold the main body content. Flag for the teaser state of the node.php variables $content The number of comments attached to the node. The path to the logo image. typically blocks. Whether submission information should be displayed. Flag for the full state of the page. An array containing all main menu links. TRUE if the user is registered and signed in. Outputs either odd or even for every other node. The title of the node. Time the node was published formatted as a Unix timestamp. Incremental position of the node.php variables page. An array containing all secondary menu links. Whether the node is flagged for promote to front page . . The base URL path of the Drupal install. The URL of the current node. Whether the node is being viewed in full or teaser mode. TRUE if the current page is the front page. The slogan of the website. Array containing output prepended by modules. TRUE when the current user is logged in. The directory in which the template is located. Array containing output prepended by modules. A string of feed icons for the current page. The URL of the front page. An array of node items. Replaces the $mission variable. The full node object.tpl. Tabs linking to sub-pages beneath the current page. The page title. The node type.

php block--[region]. Template for displaying a node of a specific ID.tpl.tpl. Template to provide an HTML container for comments.php theme.php search-results.tpl. Template for displaying profile categories.tpl. Template to wrap aggregator content. Template to present a linked feed item for summaries.tpl. closing. Two -. Template to display an appropriate icon for a forum post.php page.tpl.tpl.info file. Template for displaying a user's profile data.php node.tpl.tpl.tpl. Template for printed version of the book online.$classes $region $classes_array $is_admin $is_front $logged_in Drupal Template Files aggregator-feed-source. Template to present the source of the feed. Template for displaying the admin toolbar.php taxonomy-term.php region. Template for displaying a node of a specific content type. Template to display poll results in a block.php aggregator-summary-items.tpl. node/10.tpl.php A string of CSS classes. Template for displaying search results.php node--[content-type].tpl.tpl. TRUE if the current page is the front page. Template to display a single Drupal page when the website is offline. Template for displaying node content.php aggregator-wrapper.tpl. Stores meta data about the theme.php poll-bar--block. Template for displaying a single search result. Template for displaying region content. Template for displaying a taxonomy term.php book-node-export-html.info toolbar. Array of html class attribute values. Template to navgate books.for Drupal 7.tpl.tpl.for Drupal 7. Template to format a single string displaying the author and time of post.tpl.tpl.tpl.php forum-icon.php comment.tpl. Template to display the poll results. Template for displaying a user and their data for member listing pages. Template for rendering a single node in a printer friendly outline. The name of the region as defined in the . Template for displaying page content.php book-navigation.php forum-submitted.php maintenance-page.tpl. Template for wrapping member listings and their profiles. Template for presenting profile values from profile fields or modules.tpl.tpl. Two -.php poll-vote. Template for a block in a specific region.tpl.php comment-wrapper.tpl. Template to display the value of a field. Template to display a forum which may contain containers and topics.php book-all-books-block. Page wrapper for your theme containing <html> open.php user-picture. Template to display a list of forums and containers.php poll-results--block.php profile-wrapper.tpl.tpl. .php profile-listing.for Drupal 7. Template to display a list of forum topics. Template to format an individual feed item.php forum-topic-list. Template to configure blocks.tpl. Template for presenting a user's account picture. Template for displaying a voting form for a poll.php search-block-form.tpl. Template for displaying the search form block. Template for displaying comment content. Two -. Template to display the bar for a single choice in a poll. Template to display the bar for a choice in a poll when displayed in a block. For example.tpl. Template for rendering book outlines within a block.php user-profile-item.tpl.tpl.tpl.tpl.tpl. TRUE when the current user is an administrator. etc tags. TRUE if the user is registered and signed in.php search-result.tpl.php poll-bar.tpl. Template for displaying user profiles within a block.tpl. Template to present feeds as list items.tpl.php user-profile.php book-export-html.tpl.tpl.php poll-results.php aggregator-summary-item. Template for displaying block content.tpl. Template for the front page of the website.php profile-block.php block-admin-display-form.php forums.php page--node-[#].php user-profile-category.php aggregator-item.php block.php forum-list.tpl.tpl.php field.php page--front.php html.

Sign up to vote on this title
UsefulNot useful