Node section
The Node Section
The node section (xtemplate.xtmpl) contains the main content of the page, and begins and ends with these tags:
<!-- BEGIN: node -->
<!-- END: node -->
{sticky}
Sets the class to "node sticky" if a node is "stickied" at the top of lists. (i.e. if a teaser for the page is always to be displayed on the home page) If the node has not been set to be sticky, the class is set to "node ".
Picture
Picture contains an image representing the user who posted the content of a node, the image is linked to the poster's profile. This is also sometimes called an "avatar". Picture begins and ends with these tags:
<!-- BEGIN: picture -->
<!-- END: picture -->
{picture}
Outputs the following:
<a href="user/1" title="View user profile.">
<img src="http://www.yoursite/files/pictures/picture-1.gif"
alt="Username's picture" /></a>Title
The title of the main content of the page (node), tags begin and end:
<!-- BEGIN: title -->
<!-- END: title -->
On a node page, the title is output as:
<h1 class="title">Node Title</h1>
On the Home Page, each node title is output as:
<h2 class="title"><a href="node/31"
>Node Title</a></h2>{link}
Outputs the link to the node , "node/31" in the example above.
{title}
Outputs the text of the node title, "Node Title" in the example above.
{submitted}
The username of the person who submitted the node content, outputs:
Submitted by <a href="user/1" title="View user profile."
>Username</a> on 16 February, 2004 - 23:46.Taxonomy
A list of links to taxonomies which the node belongs to, tags begin and end:
<!-- BEGIN: taxonomy -->
<!-- END: taxonomy -->
{taxonomy}
Outputs a taxonomy term that the node belonds to:
<a href="taxonomy/term/30">Taxonomy Term</a>
{content}
The main content of the node.
Links
The control options for the node: "printer-friendly version", "add new comment",
and the visitor history of the node. Tags begin and end:
<!-- BEGIN: links -->
<!-- END: links -->
{links}
Outputs the following (depending on the viewer's permisions):
<a href="book/print/8"
title="Show a printer-friendly version of this book page
and its sub-pages.">printer-friendly version</a> |
<a href="comment/reply/8#comment"
title="Share your thoughts and opinions related to this posting."
>add new comment</a> |
<a href="admin/statistics/log/node/8">662 reads</a>