<mt:Comments>

A container tag which iterates over a list of comments on an entry or for a blog. By default, all comments in context (meaning all the comments for that particular entry or in a blog) are returned. If you use it in a blog context, only comments on published entries are returned.

You can view a list of all comment-related template tags for an idea of the flexibility available in publishing comments. And the following attributes will let you custom-tailor the mt:Comments tag to show exactly the the comments you are selecting.

Attributes:

  • lastn

    Display the last N comments in context where N is a positive integer. NOTE: lastn is required in a blog context.

  • offset (optional; default "0")

    Specifies a number of comments to skip.

  • sort_by (optional)

    Specifies a sort column.

  • sort_order (optional)

    Specifies the sort order and overrides the General Settings. Recognized values are "ascend" and "descend."

  • namespace

    Used in conjunction with the "min*", "max*" attributes to select comments based on a particular scoring mechanism.

  • min_score

    If 'namespace' is also specified, filters the comments based on the score within that namespace. This specifies the minimum score to consider the comment for inclusion.

  • max_score

    If 'namespace' is also specified, filters the comments based on the score within that namespace. This specifies the maximum score to consider the comment for inclusion.

  • min_rank

    If 'namespace' is also specified, filters the comments based on the rank within that namespace. This specifies the minimum rank to consider the comment for inclusion.

  • max_rate

    If 'namespace' is also specified, filters the comments based on the rank within that namespace. This specifies the maximum rank to consider the comment for inclusion.

  • min_count

    If 'namespace' is also specified, filters the comments based on the count within that namespace. This specifies the minimum count to consider the comment for inclusion.

  • max_count

    If 'namespace' is also specified, filters the comments based on the count within that namespace. This specifies the maximum count to consider the comment for inclusion.

This page was last updated on 2009-01-27, 00:47. [Edit]

2 Notes

Important note: This tag supports all of the MultiBlog template tag attributes blog_ids/include_blogs and exclude_blogs for aggregating across different blogs.

Limit comments to an author (requires Community Pack):

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.