Content Rating - Documentation topics on: content rating,deprecated,macros,.

Content Rating
Deprecated

The getRating macro is used to display a ten star scale that allows users to evaluate content.

Macro Overview:

Syntax:

#getRating($content_identifier)

Arguments:

  • content_inode
    This is the identifier of the contentlet to be evaluated by the rating macro

Optional Parameters:


Usage:

This macro will automatically show a ten star menu indicating the scaled range for rating the contentlet.

There is a thread that updates ratings on content. By default, this update is disabled and the default values are set to run the thread every 10 minutes if it's enabled.
#UpdateRatingThread
ENABLE_UPDATE_RATINGS_THREAD=true
## every 10 minutes
UPDATE_RATINGS_THREAD_CRON_EXPRESSION=0 0/10 * * * ?
UPDATE_RATINGS_THREAD_INIT_DELAY=180
RATING_MAX_VALUE=5
#UsersToDeleteThread
ENABLE_USERS_TO_DELETE_THREAD=false
USERS_TO_DELETE_THREAD_INIT_DELAY=60

After using ratings macro, wait 10 minutes to check content for updated ratings or change the wait time in the dotmarketing-config.properties file.
Examples:

Example 1: A simple example using the required fields

#getRating($content.identifier)