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
TemplateThe template.
comments
CommentCollectionThe 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
TemplateThe template.
comments
CommentCollectionThe comments.
loopName
stringThe name of the template loop.
RenderStars(double)
Renders the stars.
public string RenderStars(double rating)
Parameters
rating
doubleThe 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
intThe rating.
Returns
- string
A piece of html of 5 stars either full or blank