Print the Average Rating of a Content - Documentation topics on: deprecated,macros,printaveragerating,print the average rating of a content,.

Print the Average Rating of a Content
Deprecated

Note: This feature has been deprecated. Please see the RatingAPI documentation for the curren ratings feature.

Prints out the average rating calculated by dotCMS from the rating votes. The average rating is formatted with two decimals (i.e., X.XX).

Macro Overview

Usage:

#printAverageRating(content_identifier)

Arguments:

  • content_inode: Identifier of the contentlet to be evaluated by the macro.

Optional Parameters:

None.

Example:

A simple example using the required fields:

#printAverageRating($content.identifier)