You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > ContentReview Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentReview Class

The ContentReview server control has two ways it can be used. The first, places a star based rating scale on any page of your Web site. The scale lets Ektron CMS400.NET collect feedback by giving site visitors the opportunity to rate a particular content item. An item is rated when a visitor clicks on a star. Depending on the XSLT chosen, visitors can also submit review comments.  

The second way the ContentReview control can be used is to retrieve and display visitor reviews and comments. In this mode, the control can display reviews of a content item or reviews by a specific site or membership user.

C#
[DefaultProperty("DefaultContentID"), ToolboxData("<{0}:ContentReview runat=server></{0}:ContentReview>")]
public class ContentReview : EkXsltWebPart, ICallbackEventHandler;
Visual Basic
<DefaultProperty("DefaultContentID"), ToolboxData("<{0}:ContentReview runat=server></{0}:ContentReview>")>
Public Class ContentReview
Inherits EkXsltWebPart
Inherits ICallbackEventHandler

ContentReview.cs

Name 
Description 
The methods of the ContentReview class are listed here. 
The properties of the ContentReview class are listed here. 
 
Name 
Description 
 
Fill 
Method that can be overridden and used to grab data from the back end for each server control.  
 
 
 
Wraps the resulting collection with the Ektron Toolbars, which will only display when a user is logged in.  
 
Wrap 
Method that can be overridden and used to wrap an Ektron toolbar corresponding to a particular Control around some Html text.  
 
Name 
Description 
 
Gets or Sets the default content ID for this control. This is the content ID that will be rated if the DynamicParameter does not get a value. (e.g. index.aspx?id=2 will get the value 2 for a DynamicParameter of "id", and will display DefaultContentID otherwise.)  
 
Select the type of review to display, or enter the path to a custom XSLT. (optional).
Choices are:
  • Ajax 5 Stars - a five star rating system utilizing Ajax for display.
  • Ajax 5 Stars Comment - a five star rating system utilizing Ajax for display. In addition, when you hover over the stars, a review box pops-up below the stars. Comments that are added are submitted via an Ajax call.
  • Ajax 5 Stars with Increments - a five star rating system with half star increments that utilizes Ajax for display.
  • 5 Stars - a five star rating system that allows... more 
 
To make this content review control dynamic, select id. When you do, this server control is attached to the content block passed as a URL parameter. When using this control to retrieve a user’s reviews, set this property to UserId to make the User’s ID dynamic.  
 
The querystring parameter for which to get the user ID. If a value is found in this parameter, it is used, or the UserID property is used. Important: The GetReviews property must be set to User for the control to use this property.  
 
This property returns a list of reviews for a content item or a specified user. It is used to decide which type of review information is retrieved by the server control. To display reviews on a page, you must use an XSLT that is set up for displaying reviews.  
 
The number of reviews to retrieve if the GetReview property is set to Content or User. 0 (zero) = unlimited results.  
 
Setting this property to True allows CMS400.NET users to moderate reviews.
Additional information on moderating reviews can be found in the Ektron CMS400.NET Administrator Manual section “Managing HTML Content” > “Content Rating”  
 
Sets a minimum number of the reviews and ratings before displaying the average rating.  
 
The user ID for which to get reviews. If left blank, reviews from all users are returned. If a user ID is specified, only reviews for that user are returned.
Important: The GetReviews property must be set to User for the control to use this property.  
 
Returns the Xslt object for the collection.  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!