$content
Node content, teaser if it is a summary.
$date
Formatted creation date.
$directory
The directory the theme is located in, e.g. themes/garland.
$id
The sequential ID of the node being displayed in a list.
$is_front
True if the front page is currently being displayed.
$links
Node links.
$name
Formatted name of author.
$node (object)
The node object.
$node_url
Link to node.
$page
True if the node is being displayed by itself as a page.
$picture
HTML for user picture, if enabled.
$sticky
True if the node is sticky.
$submitted
Author and create date, if the node info display is enabled for this node type.
$taxonomy (array)
array of HTML links for taxonomy terms.
$teaser
Only returns the teaser rather than the full node text.
$terms
HTML for taxonomy terms.
$title
Title of node.
$zebra
Alternates between odd/even in a list.
Basics of Drupal, Techniques in drupal, Customizing the Drupal themes, Custom functions in drupal, Does and Dont in Drupal, Interview Question & Answers in Drupal etc.
Showing posts with label Drupal Variables. Show all posts
Showing posts with label Drupal Variables. Show all posts
Wednesday, May 18, 2011
Node.tpl.php Variables
Page.tpl.php Variables
Variables & Description:
$base_path
Base URL path of the Drupal installation.
$breadcrumb
HTML for displaying the breadcrumbs at the top of the page.
$closure
Required at the bottom of the page, for any javascript that needs to be called once the page is displayed.
$content
The HTML content generated by Drupal to be displayed.
$css
An array of all the CSS files for the current page.
$directory
Directory the theme is located in, e.g. themes/garland.
$feed_icons
A string of all feed icons for the current page.
$footer_message
Footer message as defined in the admin settings.
$head
HTML as generated by drupal_get_html_head().
$head_title
Text to be displayed in the page title.
$help
Dynamic help text, mostly for admin pages.
$is_front
True if the front page is currently being displayed. Used to toggle the mission.
$language
Language the site is being displayed in.
$layout
Used to style different types of layout ('none', 'left', 'right' or 'both') differently, depending on how many sidebars are enabled.
$logo
Path to the logo image, as defined in theme configuration.
$messages
HTML for status and error messages, to be displayed at the top of the page.
$mission
Text of the site mission, empty when display has been disabled in theme settings.
$node
(5.x and after only) If you are in page.tpl.php displaying a node in full page view then $node is available to your template.
$primary_links (array)
Array containing the links as they have been defined in the phptemplate specific configuration block.
$scripts
HTML to load the JavaScript files and make the JS settings available. Previously, javascript files are hardcoded into the page.tpl.php
$search_box
True(1) if the search box has been enabled.
$secondary_links (array)
An array containing the links as they have been defined in the phptemplate specific configuration block.
$sidebar_left
HTML for the left sidebar.
$sidebar_right
HTML for the right sidebar.
$site_name
Name of the site, empty when display has been disabled in theme settings.
$site_slogan
Slogan of the site, empty when display has been disabled in theme settings.
$styles
Required for stylesheet switching to work, prints out required style tags.
$tabs
HTML for displaying tabs at the top of the page.
$title
Title, different from head_title, as this is just the node title most of the time.
$base_path
Base URL path of the Drupal installation.
$breadcrumb
HTML for displaying the breadcrumbs at the top of the page.
$closure
Required at the bottom of the page, for any javascript that needs to be called once the page is displayed.
$content
The HTML content generated by Drupal to be displayed.
$css
An array of all the CSS files for the current page.
$directory
Directory the theme is located in, e.g. themes/garland.
$feed_icons
A string of all feed icons for the current page.
$footer_message
Footer message as defined in the admin settings.
$head
HTML as generated by drupal_get_html_head().
$head_title
Text to be displayed in the page title.
$help
Dynamic help text, mostly for admin pages.
$is_front
True if the front page is currently being displayed. Used to toggle the mission.
$language
Language the site is being displayed in.
$layout
Used to style different types of layout ('none', 'left', 'right' or 'both') differently, depending on how many sidebars are enabled.
$logo
Path to the logo image, as defined in theme configuration.
$messages
HTML for status and error messages, to be displayed at the top of the page.
$mission
Text of the site mission, empty when display has been disabled in theme settings.
$node
(5.x and after only) If you are in page.tpl.php displaying a node in full page view then $node is available to your template.
$primary_links (array)
Array containing the links as they have been defined in the phptemplate specific configuration block.
$scripts
HTML to load the JavaScript files and make the JS settings available. Previously, javascript files are hardcoded into the page.tpl.php
$search_box
True(1) if the search box has been enabled.
$secondary_links (array)
An array containing the links as they have been defined in the phptemplate specific configuration block.
$sidebar_left
HTML for the left sidebar.
$sidebar_right
HTML for the right sidebar.
$site_name
Name of the site, empty when display has been disabled in theme settings.
$site_slogan
Slogan of the site, empty when display has been disabled in theme settings.
$styles
Required for stylesheet switching to work, prints out required style tags.
$tabs
HTML for displaying tabs at the top of the page.
$title
Title, different from head_title, as this is just the node title most of the time.
Subscribe to:
Posts (Atom)