Documentation Center

Item statistics

Retrieve various properties related to the comments or ratings of a Page of Component for display on the Web page.

LanguageCommand
ASP.NET Server Control<ugc:ItemStats runat="server">
JSP Custom Tag<ugc:ItemStats>
TCDL tag<tcdl:ItemStats>

Return values

Properties are returned in an object that contains the following fields:

averageRating
The average rating (sum of all rating values divided by number of ratings submitted) for this Page or Component.
numberOfRatings
The number of ratings submitted for this Page or Component.
numberOfComments
The number of comments submitted for this Page or Component.
lastRatedDate
The most recent moment at which a visitor submitted a rating for this Component or Page.
lastCommentedDate
The most recent moment at which a visitor submitted a comment for this Component or Page.

Attributes

Attribute name (JSP or TCDL)Description
itemURI (JSP or TCDL) or ItemURI (ASP.NET)The Content Manager URI of the Component or Page you want to retrieve statistics information for.
var (JSP or TCDL) or Var (ASP.NET)(optional) Your custom name for the statistics object returned. Defaults to ugcItemStats.