# Comments and Reviews widgets

## Comments widget

Use the *Comments* widget to give the users the option to leave comments on pages.

> info **PREREQUISITES**: You have enabled the comments option for pages. For more information, see [Administration: Enable comments and ratings](https://www.progress.com/documentation/sitefinity-cms/overview-comments-module#enable-comments-and-ratings).

For more information, see [Overview: Comments module](https://www.progress.com/documentation/sitefinity-cms/overview-comments-module).

### Comments widget settings

To edit options for a single *Comments* widget, click the *Edit* button in the upper right corner of the widget. In the *Comments* window, configure the following:

* Basic settings:
  * *Template* Select the template you want to use for the *Comments* widget on the webpage.
  * *CSS classes* Expand the *More options* section to specify additional CSS classes to the widget.
* Advanced settings   Specify individual properties of the widget:
  * *Template* Gets and sets the template used for *Comments* widget.

####

### Model settings

####

Model settings display all properties directly bound to the *Comments* widget model. Access these properties by clicking the *Model* button in *Advanced* settings. The following table lists all model settings and their description.

 <table> <colgroup><col><col></colgroup> <tbody> <tr> <td>

<strong>Model setting</strong>

</td> <td>

<strong>Description</strong>

</td> </tr> <tr> <td>

<em>CommentsAutoRefresh</em>

</td> <td>

Gets and sets whether comments should always automatically refresh to keep the end user up to date with the latest comments posted for the item while reviewing the page.

</td> </tr> <tr> <td>

<em>CommentsRefreshInterval</em>

</td> <td>

Gets and sets the time interval (in milliseconds) after which comments list is automatically refreshed. This setting is applied only after you set <em>CommentsAuthoRefresh</em> to `true`.

</td> </tr> <tr> <td>

<em>CommentTextMaxLength</em>

</td> <td>

Gets and sets the maximum length of the comment abstract that is displayed when the comments list is loaded. Upon clicking the <em>Read full comment</em> link, the full comment text is displayed.

</td> </tr> <tr> <td>

<em>CssClass</em>

</td> <td>

Gets and sets the CSS class applied to the upper element of the <em>Comments</em>& widget template.

</td> </tr> <tr> <td>

<em>DataSource</em>

</td> <td>

Gets and sets the provider used for a comments source. If you want the <em>Comments</em> widget linked to the current Sitefinity CMS page, do not edit this setting. <br>

</td> </tr> <tr> <td>

<em>GroupKey</em>

</td> <td>

Gets and sets the group used for associating comments. If you want the <em>Comments</em> widget linked to the current Sitefinity CMS page, do not edit this setting.<br> For more details on groups, see [For developers: Work with groups](https://www.progress.com/documentation/sitefinity-cms/for-developers-work-with-groups).

</td> </tr> <tr> <td>

<em>ThreadIsClosed</em>

</td> <td>

Gets and sets whether the particular widget allows posting of comments or just lists the comments. The default value is `False`, which means submitting of comments is allowed.

</td> </tr> <tr> <td>

<em>ThreadKey</em>

</td> <td>

Gets and sets the thread key of the thread used as a comments source. If you want the <em>Comments</em> widget linked to the current Sitefinity CMS page, do not edit this setting.<br>
For more details on threads, see [For developers: Work with threads](https://www.progress.com/documentation/sitefinity-cms/for-developers-work-with-threads).

</td> </tr> <tr> <td>

<em>ThreadTitle</em>

</td> <td>

Gets and sets the title of the thread used as a comments source. If you want the <em>Comments</em> widget linked to the current Sitefinity CMS page, do not edit this setting.

</td> </tr> <tr> <td>

<em>ThreadType</em>

</td> <td>

Gets and sets the type of the thread used as a comments source. If you want <em>Comments</em> widget linked to the current Sitefinity CMS page, do not edit this setting.

</td> </tr> </tbody> </table>

## Reviews widget

You use the *Reviews* widget to give the users the option to write reviews and put ratings on pages.

[![Reviews widget](https://www.progress.com/documentation/sitefinity-cms/assets/9dff003dd950eb660723a6082eb02e9a/reviewswidget.jpg)](https://www.progress.com/documentation/sitefinity-cms/assets/9dff003dd950eb660723a6082eb02e9a/reviewswidget.jpg)

> info **PREREQUISITES**: You must set the `AllowComment` setting for pages to `True`.\
> For more information, see [Administration: Enable comments and ratings](https://www.progress.com/documentation/sitefinity-cms/overview-comments-module).

> info  **NOTE**: Be aware that the *Reviews* widget does not depend on the *Enable user ratings as part of the comments* setting, which provides the option  have comments and reviews at the same time. The latter setting is taken under consideration to determine whether to display by default comment or reviews for a certain content item, for example *News*.

The *Reviews* widget has the same settings as the *Comments* widget. The main difference between the two widgets is that a user can add only one review per item.
