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
templateTemplateThe template.
commentsCommentCollectionThe 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
templateTemplateThe template.
commentsCommentCollectionThe comments.
loopNamestringThe name of the template loop.
RenderStars(double)
Renders the stars.
public string RenderStars(double rating)
Parameters
ratingdoubleThe 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
ratingintThe rating.
Returns
- string
A piece of html of 5 stars either full or blank