コメントをカスタムフィールドで拡張した後に、実際にコメントを受付けるためには、ブログのコメント入力欄にフォームを追加する必要があります。以下のタグを、コメント投稿フォーム(<form></form>)内に記述することで、カスタムフィールド用のフォームを出力します。
<input type="hidden" name="blog_id" value="<MTBlogID>" /> <input type="hidden" name="customfield_beacon" value="1" id="customfield_beacon" /> <mt:CommentCustomFields> <mt:SetVarBlock name="custom_field_name"><$mt:CustomFieldName$></mt:SetVarBlock> <mt:SetVarBlock name="field-content"><$mt:CustomFieldHTML$></mt:SetVarBlock> <mt:SetVarBlock name="custom_field_id">profile_<$mt:CustomFieldName dirify="1"$></mt:SetVarBlock> <$mt:Include module="フォームフィールド" id="$custom_field_id" class="" label="$custom_field_name"$> </mt:CommentCustomFields>
指定した名前のフィールドの情報を表示するようにします。
指定した名前のフィールドの情報を表示しないようにします。