Wednesday, May 18, 2011

Node.tpl.php Variables

$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.

No comments:

Post a Comment

Followers