--- label: 'Adding a field to an entity sub-type' related: - core.content_structure - field_ui.manage_display - field_ui.manage_form --- {% set content_types = render_var(url('entity.node_type.collection')) %} {% set content_structure = render_var(url('help.help_topic', {'id': 'core.content_structure'})) %}

{% trans %}Goal{% endtrans %}

{% trans %}Add a field to an entity sub-type; see Managing content structure for an overview of entity types and sub-types.{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}Navigate to the page for managing the entity sub-type you want to add the field to. For example, to add a field to a content type, in the Manage administrative menu, navigate to Structure > Content types.{% endtrans %}
  2. {% trans %}Find the particular sub-type that you want to add the field to, and click Manage fields.{% endtrans %}
  3. {% trans %}Click Add field.{% endtrans %}
  4. {% trans %}In Add a new field, select the type of field you want to add; see Managing content structure for an overview of field types.{% endtrans %}
  5. {% trans %}The Label field should now be visible; enter a label for the field, which is used as the field label for both content editing and content display.{% endtrans %}
  6. {% trans %}Click Save and continue.{% endtrans %}
  7. {% trans %}On the next screen, enter a value for Allowed number of values. You can limit the field to one value per entity item, a set number of values, or set it to have unlimited values. Click Save field settings.{% endtrans %}
  8. {% trans %}On the next screen, optionally edit the settings for the field, which vary depending on what field type you are creating. For all fields, you can edit the Label, Help text (text to be displayed below the field on the content editing page), and Required field (to make it so a value must be entered in order to save the content when editing). You can also configure a default value for the field.{% endtrans %}
  9. {% trans %}Click Save settings. You should be returned to the Manage fields page, with your new field in the list.{% endtrans %}