Comments
| Language | Command |
|---|---|
| ASP.NET Server Control | <ugc:Comments runat="server"> |
| JSP Custom Tag | <ugc:Comments> |
| TCDL tag | <tcdl:Comments> |
Description: Retrieve comments for a Component or a Page for display on the Web page.
Attributes:
| Attribute name | Description |
|---|---|
itemURI (JSP or TCDL) or ItemURI (ASP.NET) | The Content Manager URI of the Component or Page you want to show comments for |
var (JSP or TCDL) or Var (ASP.NET) | (optional) Your custom name for the array of comments for this Component or Page. Defaults to ugcComments. |
submitted (JSP or TCDL) or Submitted (ASP.NET) | (optional) If set to true, include comments that require moderation in the comments you retrieve. If moderation is not configured, all comments have either this status or resubmitted status. Defaults to true. |
flaggedForModeration (JSP or TCDL) or FlaggedForModeration (ASP.NET) | (optional) If set to true, include comments that have somehow been flagged for moderation in the comments you retrieve. Defaults to false. |
posted (JSP or TCDL) or Posted (ASP.NET) | (optional) If set to true, include comments that have a status "Published to Web site" in the comments you retrieve; that is, include moderated and approved comments. If moderation is not configured, no comments have this status. Defaults to true. |
resubmitted (JSP or TCDL) or Resubmitted (ASP.NET) | (optional) If set to true, include comments that have a status "Modified by visitor, needs moderation"; that is, include comments that the visitor modified after they appeared on the Web site. If moderation is not configured, all comments have either this status or submitted status. Defaults to true. |
top (JSP or TCDL) or Top (ASP.NET) | (optional) The maximum number of comments to return. Combine with skip to paginate comments. Defaults to the value of $top in the Web service API, which itself defaults to 10. |
skip (JSP or TCDL) or Skip (ASP.NET) | (optional) The number of comments to skip. Combine with top to paginate comments. For example, setting top to 20 and skip to 60 returns results in results 61 to 80 being returned. Defaults to 0. |
orderDescending (JSP or TCDL) or OrderDescending (ASP.NET) | (optional) The order in which the comments are sorted. If set to true, the comments are sorted in descending order. Defaults to false, meaning ascending order. |