Class CommentRenderer
- Namespace
- Dynamicweb.Content.Commenting
- Assembly
- Dynamicweb.dll
Renders comments and ratings.
public sealed class CommentRenderer
- Inheritance
-
CommentRenderer
- Inherited Members
Methods
RenderComment(Template, Comment)
Renders a comment.
public void RenderComment(Template template, Comment comment)
Parameters
RenderComment(Template, Comment, string)
Renders a comment.
public void RenderComment(Template template, Comment comment, string tagPrefix)
Parameters
RenderComments(Template, CommentCollection)
Renders a comment collection in a loop called "Comments".
public 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 with the specified name.
public void RenderComments(Template template, CommentCollection comments, string loopName)
Parameters
template
Template- The template.
comments
CommentCollection- The comments.
loopName
string- The name of the template loop.
RenderStars(double)
Renders the stars.
public string RenderStars(double rating)
Parameters
rating
double- The rating.
Returns
- string
- A piece of html of 5 stars either full or blank
RenderStars(int)
Renders the stars.
public string RenderStars(int rating)
Parameters
rating
int- The rating.
Returns
- string
- A piece of html of 5 stars either full or blank