Comments API
Many modules have preformatted comments forms available to them. See each module's API documentation for more details.
Display Mode: List
Show
before_show, after_show
Tag | Description |
---|---|
__loginlink linktext='Click Here To Login'__ | Links to the login lightbox iframe |
__commentNumber__ | Formatted "Comments(3)" |
__commentNumberonly__ | Just the number of comments |
show_thanks
There are no tags for show_thanks. This text will be displayed after a comment is submitted to remind users that comments must be approved before being shown, if auto approval has not been enabled.
show
Tag | Description |
---|---|
__commentName__ | The name of the user |
__nameisverified__ | If the comment was anonymous and thus we can't verify that the user is who he/she claims to be, this tag will return 'name-is-not-verified'. |
__commentusername__ | The username of the user |
__commentThumb__ | Thumbnail image of the user |
__commentDate__ | formattable date/time. Use __commentDate format='j/m/Y'__ a complete list of tags is available |
__commentText__ | The full text of the comment |
__preview__ | A shortened version of the text. HTML is stripped. Defaults to be no more than 250 characters. Can be specified with __perview limit='120'__ Uses the description if no summary is available |
Parameters
type
Required.
- 'S' or 'sermon' for sermons
- 'E' or 'event' for events
- 'A' or 'article' for articles
- 'P' or 'page' for pages
- 'R' or 'book' for books
Example:
"type:S",find
The slug of the content. Either find_id or find must be used.
Example:
"find:article-slug",find_id
The id of the content. Either find_id or find must be used.
Example: