Class Renderer
- Namespace
- Dynamicweb.Content.Commenting
- Assembly
- Dynamicweb.dll
Renders comments and ratings.
[Obsolete("Use CommentRenderer instead.")]
public class Renderer
- Inheritance
-
Renderer
- Inherited Members
Methods
RenderComment(Template, Comment)
Renders a comment.
public static void RenderComment(Template template, Comment comment)
Parameters
RenderComment(Template, Comment, string)
Renders a comment.
public static void RenderComment(Template template, Comment comment, string tagPrefix)
Parameters
RenderComments(Template, CommentCollection)
Renders a comment collection in a loop called "Comments".
public static void RenderComments(Template template, CommentCollection comments)
Parameters
template
Template- The template.
comments
CommentCollection- The comments.
RenderComments(Template, CommentCollection, string)
Renders a comment collection in a loop called "Comments".
public static void RenderComments(Template template, CommentCollection comments, string loopName)
Parameters
template
Template- The template.
comments
CommentCollection- The comments.
loopName
string- Name of the loop.
RenderStars(double)
Renders the stars.
public static string RenderStars(double rating)
Parameters
rating
double- The rating.
Returns
- string
- A piece of html of 5 stars either full, half or blank
RenderStars(int)
Renders the stars.
public static string RenderStars(int rating)
Parameters
rating
int- The rating.
Returns
- string
- A piece of html of 5 stars either full, half or blank