Add a rating widget to web content
You can add a rating widget to a content item by adding a [Plugin:ratings] component to presentation template. By default the plug-in component is rendered using the RatingWidgetDesign design, which is included in the web content library Web Resources v70, or you can create own design.When using tagging and rating with web content, ensure that synchronization of the tagging and rating scopes has been set up for the portal.
To add a rating widget to a content item, include the rating plug-in in presentation template.
For example:
<div id="ratings"> [Plugin:ratings]</div>The rating plug-in supports the following parameters that are specified in a key=value format:
design=path
The design parameter indicates which design to use when rendering the rating widget. Specify the path information using the full library path to the HTML component that contains the design template for the rating widget. For example:
[Plugin:ratings design="Web Content/folder/myRatingDesign"]
If the design parameter is not specified, a default design is defined in the RatingWidgetDesign component, which is provided with Web Resources v70 library that is included in the product. During rendering the system checks the following locations for the default design:
- The current web content library
- The web content library Web Resources v70
actionScope=scope
The actionScope parameter indicates the scope of tags that you want to show in this widget. For a list of possible values see the description of the ratingScope parameter used with the inline tag widget. For example:
[Plugin:tags actionScope="community"]
Parent
Add tagging and rating to web contentRelated
Previous
Synchronize scopes for web content
December 14, 2011
Apr 1, 2011 1:26:17 PM
});