Properties for the rating widget | HCL Digital Experience
View the properties for the rating widget.
Note: The parameters listed here are specific to the inline rating widget that was introduced with
HCL Portal Version 8.5. For information about the earlier widgets and their
parameters, read the appropriate topics in the HCL Portal Version 8.0 product
documentation.
- com.ibm.wps.cp.rating.inline.customLabel
- Use this property to specify a non-localized custom label to describe the displayed ratings. This property has no default.
- com.ibm.wps.cp.rating.inline.numStars = (5)
- Use this property to specify the number of stars or asterisks of which a rating consists.
Specify a positive numeric value. The default value is
5
. Do not specify a value larger than the value specified for the propertycom.ibm.wps.cp.rating.maxratingvalue
in the WP CP configuration service for tagging and rating. For more information about this property, read General properties for tagging and rating. - com.ibm.wps.cp.rating.inline.privateRatingEnabled = (false)
- Use this parameter to enable private rating. To enable private rating, set this parameter to
true
. The default value isfalse
. - com.ibm.wps.cp.rating.inline.ratingScope = (COMMUNITY_PERSONAL_PUBLIC)
- Use this property to specify the scope of ratings that you want to show in this inline widget.
Specify one of the following values:
If you do not specify a value, the property defaults toCOMMUNITY_PERSONAL_PUBLIC|PERSONAL_PUBLIC|PERSONAL_PRIVATE
COMMUNITY_PERSONAL_PUBLIC
. - com.ibm.wps.cp.rating.inline.ratingDesc
- Use this property to specify the rating description that you want to show in this rating widget.
By default, this property is not part of the rating widget. If you add this property to the rating
widget, the default value is
ALL
. Specify one of the following values:- RATING_VALUE
- With this value, the rating description includes only the numerical rating value.
- TOTAL_NO_RATING
- With this value, the rating description includes only the total number of ratings assigned.
- ALL
- With this value, the rating description includes both the numerical rating value and the total
number of ratings. This is the default value if you add the
com.ibm.wps.cp.rating.inline.ratingDesc
property to the rating widget. - NONE
- If you do not specify a value, the rating description is not displayed at all.