<$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]
Returns the number of published comments associated with the blog currently in context.
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.
Copyright 2007-2009 Six Apart Ltd. All content licensed under Creative Commons Attribution-Share Alike 3.0 Unported License.
Mihai Bocsaru
November 10, 2009 12:46 PM | Reply
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 ;)