--- 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 %}

  1. {% 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 %}
  2. {% 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 %}
  3. {% trans %}On the next field settings page, enter the desired settings for the comment field:{% endtrans %}

{% trans %}Additional resources{% endtrans %}