---
label: 'Configuring comments'
related:
- comment.overview
- comment.creating_type
- comment.disabling
- field_ui.add_field
---
{% set comment_permissions_link_text %}
{% trans %}Administer comments and comment settings{% endtrans %}
{% endset %}
{% set comment_permissions_link = render_var(help_route_link(comment_permissions_link_text, 'user.admin_permissions.module', {'modules': 'comment'})) %}
{% set content_structure_topic = render_var(help_topic_link('core.content_structure')) %}
{% set comment_type_topic = render_var(help_topic_link('comment.creating_type')) %}
{% trans %}Goal{% endtrans %}
{% trans %}Configure a content entity type/subtype to allow commenting, using a comment type that you have configured. See {{ content_structure_topic }} for more about content entities and fields, and {{ comment_type_topic }} to configure a comment type.{% endtrans %}
{% trans %}Who can configure comments?{% endtrans %}
{% trans %}In order to follow these steps, the Field UI module must be installed. You'll need the Comment module's {{ comment_permissions_link }} permission, in order to change comment settings for a comment field. You'll also need to have the appropriate permission for adding fields to the entity type or subtype that the comments are attached to. For example, to add a comment field to content items provided by the Node module, you would need the Node module's Administer content types permission.{% endtrans %}
{% trans %}Steps{% endtrans %}
- {% trans %}Follow the steps in the related Adding a field to an entity sub-type topic to add a field of type Comments to the desired entity type or sub-type.{% endtrans %}
- {% trans %}On the first field settings page, choose the Comment type to use for this entity type or sub-type. You'll also notice that the Allowed number of values field cannot be changed for comment fields.{% endtrans %}
- {% trans %}On the next field settings page, enter the desired settings for the comment field:{% endtrans %}
- {% trans %}Threading: whether or not the comments are collected by threads, with people able to reply to particular comments instead of to the content entity itself.{% endtrans %}
- {% trans %}Comments per page: the maximum number of comments displayed on one page (a pager will be added if you exceed this limit).{% endtrans %}
- {% trans %}Anonymous commenting: whether or not anonymous commenters are allowed or required to leave contact information with their comments (only applies if anonymous users have permission to post comments).{% endtrans %}
- {% trans %}Show reply form on the same page as comments: whether the comment reply form is displayed on the same page as the comments. If this is not selected, clicking Reply will open a new page with the reply form.{% endtrans %}
- {% trans %}Preview comments: whether previewing comments before submission is Required, Optional, or Disabled.{% endtrans %}
- {% trans %}Default value: each individual entity has its own comment settings, but here you can set defaults for the comment settings for this entity type or subtype. The comment settings values are:{% endtrans %}
- {% trans %}Open: comments are allowed.{% endtrans %}
- {% trans %}Closed: past comments remain visible, but no new comments are allowed.{% endtrans %}
- {% trans %}Hidden: past comments are hidden, and no new comments are allowed.{% endtrans %}
{% trans %}Additional resources{% endtrans %}