Movable Type Documentation > Appendices > Appendix: Template Tags

IfCommentReplies

Type: block

Returns true if the current comment has any replies.

Examples

Conditionally displaying a list of replies:

<mt:IfCommentReplies>
  <mt:CommentReplies>
    <span><mt:CommentAuthor> said <mt:CommentBody></span>
  </mt:CommentReplies>
</mt:IfCommentReplies>

Displaying the number of replies to a comment

Note: this example does not show you the total count of all replies, and replies-to-replies, etc. Just the number of replies directly to the current comment.

<mt:IfCommentReplies>
  <mt:CommentReplies>
    <mt:CommentsFooter><mt:CommentOrderNumber></mt:CommentsFooter>
  </mt:CommentReplies>
<mt:else>
  <span>0</span>
</mt:IfCommentReplies>
This page was last updated on 2007-10-19, 10:09.  

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)