MTComments
コメントを表示するためのブロックタグです。コメントを表示するときは、このブロックタグの内側に記述します。また、モディファイア lastn で、表示するコメント数を指定できます。指定しないとき、すべてのコメントが表示されます。<MTComments> ブロックタグは、<MTEntries>, <MTPages> ブロックタグの内側で利用した場合、ブログ記事またはウェブページ各々に投稿されたコメントを。単独ではブログで管理しているブログ記事とウェブページに投稿されたコメントを一覧する為に利用できます。
使い方
<mt:Comments>
<mt:CommentsHeader>
<div class="section" id="comment">
<h2><$mt:EntryCommentCount singular="1 Comment" plural="# Comments" none="No Comment"$></h2>
</mt:CommentsHeader>
<dl class="comment"<mt:IfArchiveTypeEnabled archive_type="Individual"> id="c<$mt:Commentid$>"</mt:IfArchiveTypeEnabled>>
<dt>
<span class="name"><$mt:CommentAuthorLink show_email="0" default_name="名無し"$></span>
<span class="datetime"><$mt:commentdate format="%Y-%m-%dT%H:%M"$></span>
</dt>
<dd>
<$mt:CommentBody$>
</dd>
</dl>
<mt:CommentsFooter>
</div>
</mt:CommentsFooter>
</mt:Comments>
モディファイア
- lastn="N"
-
指定した数字のコメントを表示します。N は 0 より大きな数字にしてください。
- sort_order="ascend | descend"
-
並べる順序を指定します。ascend を指定すると昇順、descend は降順になります。
- blog_ids="all | children | siblings | ID"
- include_blogs="all | children | siblings | ID"
- include_with_website="1"
- exclude_blogs="ID"
-
対象のブログを指定します。詳しくは、マルチブログ機能が利用できるテンプレートタグを参照してください。
Updated on 2011-05-16, 20:09 .

