There are three types of comment: Regular comment (comment), Star Rating (rating) and Comment and Rating combined review (review). With comment tag you can set what Members can do and what public can do. Second argument of {COMMENT} tag defines this property as {COMMENT:public/member} replace public or member with comment types for example:
{COMMENT:none/comment} Public will only see posted comment while members can post comments. {COMMENT:comment/review} Public will only post comment while members can post reviews. {COMMENT:rating/review} Public can only rate but members can also post comments while rating. {COMMENT:none/none} Posting comment is closed for members and public, user can only see previously posted comments.
{COMMENT} tag must be used within the {DISPLAY} tag. Also passing the entry id through URL is required in order to connect comments with entries.
For example: Let's say we have an entry detail page called entry details.html.
{DISPLAY:form_name} ... details ...
{COMMENT:none/member} {DISPLAY:end}
After publishing, When you open this page with an entry id "?if_id={id}" Comment box will appear for logged-in users
Tags:
template tags display comment
Related Articles:
Add a new comment
|
Send Comment