Ektron CMS400.NET API Documentation
|
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.
[DefaultProperty("DefaultContentID"), ToolboxData("<{0}:ContentReview runat=server></{0}:ContentReview>")] public class ContentReview : EkXsltWebPart, ICallbackEventHandler;
<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 |
|
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. | |
|
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:
| |
|
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. | |
| ||
| ||
|
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. |
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|