recent comments
From Textbook
<txp:recent_comments />
The recent_comments tag is a single or a container tag. Textpattern will replace this tag with a list of permanent links to recent comments. This list will be displayed with the format
User's Name (Article Name)
If used as a container, the tag must be specified as an opening and closing pair, like this:
<txp:recent_comments> ...contained statements... </txp:recent_comments>
Contents |
Attributes
Tag will accept the following attributes (case-sensitive):
- sort="sort value(s)"
- How to sort the resulting list.
- Values:
discussid(comment ID#)parentid(article ID#)nameemailwebip(IP address)postedmessagerand()(random)
- Default:
posted asc. - limit="integer"
- Number of comments to display.
- Default:
10. - offset="integer"
- Number of coments to skip.
- Default: unset.
- label="label text"
- Label for the top of the list.
- Default: unset.
- labeltag="tag"
- (X)HTML tag (without brackets) to wrap around label.
- Default: unset.
- wraptag="tag"
- (X)HTML tag (without brackets) to wrap around list.
- Default: unset.
- break="value"
- (X)HTML tag (without brackets) or string used to separate list items.
- Default:
br. - class="class name"
- (X)HTML class attribute to be applied to wraptag.
- Default:
recent_comments.
Examples
Example 1: Labelled list of recent comments
<txp:recent_comments label="Recent Comments" limit="25" wraptag="p" break="br" />
Example 2: Recent comments as an unordered list
<txp:recent_comments label="Recent Comments" wraptag="ul" break="li" />
Style for default class could go this way:
.recent_comments {
list-style-type:none;
}
Genealogy
Version 4.0.7
- Can be used as a container tag.
-
offsetattribute added.




