Pasar al contenido principal
x

Objetivo

Configure a content entity type/subtype to allow commenting, using a comment type that you have configured. See Managing content structure for more about content entities and fields, and Creating a comment type to configure a comment type.

Who can configure comments?

In order to follow these steps, the Field UI module must be installed. You'll need the Comment module's Administrar comentarios y opciones de comentarios 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.

Pasos

  1. 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.
  2. 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.
  3. On the next field settings page, enter the desired settings for the comment field:
    • 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.
    • Comments per page: the maximum number of comments displayed on one page (a pager will be added if you exceed this limit).
    • 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).
    • 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.
    • Preview comments: whether previewing comments before submission is Required, Optional, or Disabled.
    • 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:
      • Open: comments are allowed.
      • Closed: past comments remain visible, but no new comments are allowed.
      • Hidden: past comments are hidden, and no new comments are allowed.

Recursos adicionales

Temas relacionados