<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.

  • include_blogs
  • exclude_blogs
  • include_websites
  • exclude_websites
This page was last updated on 2013-01-04, 01:11.