Node.tpl.php Available variables

Probleem: 
Welke variabelen kun je gebruiken in het theme bestand node.tpl.php ?

This template controls the display of a node, and a node summary. It can only affect the output of the $content variable.

Available 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 or themes/garland/minelli.
$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.
$main (4.6)
True if the node is appearing in a context, like the front page, where only the teaser should be shown. No longer used in 4.7 and later.
$name
Formatted name of author.
$node (object)
The node object. To view all of the properties of a current $node object, put the following line of code in your node.tpl.php: <pre><span style="color: #000000;"><span style="color: #0000bb;"><?php print_r</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$node</span><span style="color: #007700;">); </span><span style="color: #0000bb;">?></span></span></pre>
$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 information, if the node info display is enabled for this node type.
$taxonomy (array)
array of HTML links for taxonomy terms.
$teaser
Boolean to indicate whether to return 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.

view counter