Last updated August 26, 2009. Created by TDobes on April 19, 2004.
Edited by bekasu. Log in to edit this page.
The Comment Section
The comment section (xtemplate.xtmpl) contains all the comments associated with a node, and begins and ends with these tags:
<!-- BEGIN: comment --><!-- END: comment -->
The content of this section creates the code for a single comment, and is automaticaly repeated for as many times are there are comments.
Avatar
Avatar contains an image representing the user who posted the content of a node, the image is linked to the poster's profile. Avatar begins and ends with these tags:
<!-- BEGIN: avatar --><!-- END: avatar -->
{avatar}
Outputs the following:
<div class="avatar">
<a href="user/1" title="View user profile.">
<img src="http://www.drupal.site/files/avatars/avatar-1.jpg" alt="username's avatar" />
</a>
</div>Title
The title of a comment. Tags begin and end:
<!-- BEGIN: title --><!-- END: title -->
{link}
If required, changes the comment title into a link to the comment. Used when displaying comments in certain views.
{title}
The text of the comment title.
Submitted
{submitted}
Displays the username of the comment poster, linked to their profile, and the date and time the comment was posted. This is the output:
Submitted by <a href="user/10" title="View user profile.">username</a> on Mon, 04/19/2008 - 11:56.
New
Indicates if a comment is new. Tags begin and end:
<!-- BEGIN: new --><!-- END: new -->
{new}
Adds the word "new" to a comment.
Content
Displays the content of a comment.
{content}
The comment text.
Links
Displays control links for comment, such as "reply", "delete", and "edit". Tags begin and end:
<!-- BEGIN: links --><!-- END: links -->
{links}
Displays the control links.