<$mt:BlogCommentCount$>

Returns the number of published comments associated with the blog currently in context.

This page was last updated on 2007-10-01, 16:58. [Edit]

1 Note

You may like to know about the following undocumented attributes for this tag:

singular="1 comment" plural="# comments" none="No comments"

Here is a sample of how you could use them:

<$mt:BlogCommentCount singular="1 comment" plural="# comments" none="No comments"$>

The above would return:

"1 comment" or "9 comments" or "No comments".

You could customize the expressions "comment", "comments" and "No comments" from the above attributes.

Enjoy ;)

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.