--- label: 'Configuring taxonomy' related: - taxonomy.overview - field_ui.reference_field - field_ui.manage_display - field_ui.manage_form --- {% set taxonomy_permissions_link_text %} {% trans %}Administer vocabularies and terms{% endtrans %} {% endset %} {% set taxonomy_permissions_link = render_var(help_route_link(taxonomy_permissions_link_text, 'user.admin_permissions', {}, {'fragment': 'module-taxonomy'})) %} {% set taxonomy_admin_link_text %} {% trans %}Taxonomy{% endtrans %} {% endset %} {% set taxonomy_admin_link = render_var(help_route_link(taxonomy_admin_link_text, 'entity.taxonomy_vocabulary.collection')) %} {% set taxonomy_overview_topic = render_var(help_topic_link('taxonomy.overview')) %} {% set content_structure_topic = render_var(help_topic_link('core.content_structure')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Create a taxonomy vocabulary and add a reference field for that vocabulary to a content entity. See {{ taxonomy_overview_topic }} for information about taxonomy and {{ content_structure_topic }} for more on content entities.{% endtrans %}

{% trans %}Who can configure a taxonomy vocabulary?{% endtrans %}

{% trans %}Users with the {{ taxonomy_permissions_link }} permission can configure a vocabulary. To add a field in the administrative interface, the core Field UI module must be installed, and you will also need the Administer fields permission for the entity you are adding the field to.{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}In the Manage administrative menu, navigate to Structure > {{ taxonomy_admin_link }}.{% endtrans %}
  2. {% trans %}Click Add vocabulary.{% endtrans %}
  3. {% trans %}In the Name field, enter a name for the vocabulary (for example "Ingredients"), which is how it will be shown in the administrative interface. Optionally, add a description.{% endtrans %}
  4. {% trans %}Click Save. Your vocabulary will be created and you will see the page that lists all the terms in this vocabulary.{% endtrans %}
  5. {% trans %}Optionally, click Add term to add a term to the new vocabulary. In the Name field, enter the term name (for example "Butter"). Click Save. You will receive a confirmation about the term you created. You may optionally continue to add more terms.{% endtrans %}
  6. {% trans %}If you have the Field UI module installed, follow the instructions on the related Adding a reference field to an entity sub-type topic to add a taxonomy reference field to the entity type of your choice. The settings page will allow you to choose the Vocabulary that you created as the vocabulary to reference.{% endtrans %}
  7. {% trans %}You may also want to configure the display and form display of the new field (see related topics).{% endtrans %}

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