Comment
This placeholder represents a comment on a page or blog post.
List all comments
#foreach($comment in $page.comments)
<p>$comment.content</p>
#end
For a full example see our comment recipe: Displaying and Adding User Comments
Methods
Name | Type | Description |
---|---|---|
| String | The username of the comment author. Deprecation Notice: Use |
| List<Comment> | A list of "children comments", which are replies to the current comment. |
| String | The rendered content of the comment. |
| Date | The creation date of the comment. |
| String | The creation date of the comment, formatted using the given pattern.
|
| String | The creation date of the comment, formatted using the given pattern and locale.
-
|
| The user who created the comment. | |
| String | The ID of the comment, to be used for replies. |
| Date | The last modification date of the comment. |
| String | The last modification date of the comment, formatted using the given pattern.
|
| String | The last modification date of the comment, formatted using the given pattern and locale.
-
|
| The user who last modified the comment. | |
| String | The rendered content of the comment. |