<mt:CommentCustomFields>
This container tag iterates, or loops, over the list of custom fields associated with a comment.
See mt:EntryCustomFields for more details.
<mt:CommentCustomFields>
<ul>
<mt:IfNonEmpty tag="CustomFieldValue">
<li><$mt:CustomFieldName$>: <$mt:CustomFieldValue$></li>
</mt:IfNonEmpty>
</ul>
</mt:CommentCustomFields>
Display custom fields on the comment form
You can use mt:CommentCustomFields tag to display input fileds on the comment 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="Form Field" id="$custom_field_id" class="" label="$custom_field_name"$>
</mt:CommentCustomFields>
Attributes
- exclude="TEXT1 TEXT2"
Custom field name of the field you wish to exclude from the loop.
Related
This page was last updated on 2012-10-28, 19:50.