You can manage the comments in your website with the built-in CommentsWidget and CommentsCountControl.
PREREQUISITES: To use the CommentsWidget and CommentsCountControl widgets, in your template you must add the following reference:
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Comments.Web.UI.Frontend" TagPrefix="comments" %>
By setting the ThreadKey, you ensure that for every translation the CommentsWidget is associated with different threads. This way you can have different comments for the different translations of your items.
If you do not set the GroupKey and the ThreadType properties your CommentsWidget is automatically associated with the current page. Sitefinity CMS creates a new thread for this CommentsWidget when the first comment is submitted. In this case, if you drop two CommentsWidget on the same page they display the same comments.
NOTE: If you want to have two different items with the same list of comments, you can set the ThreadType and GroupKey for both CommentsWidgets to the same values.
Sitefinity CMS has a separate widget that displays the count of the comments associated with particular thread.
The example below displays how to add the CommentsCountControl in News template.
It has the following properties:
Use the following template example:
Back To Top
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.