taxonomy.configuring.html.twig
Same filename in other branches
--- 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.module', {'modules': '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')) %} <h2>{% trans %}Goal{% endtrans %}</h2> <p>{% 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 %}</p> <h2>{% trans %}Who can configure a taxonomy vocabulary?{% endtrans %}</h2> <p>{% trans %}Users with the <em>{{ taxonomy_permissions_link }}</em> 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 <em>Administer fields</em> permission for the entity you are adding the field to.{% endtrans %}</p> <h2>{% trans %}Steps{% endtrans %}</h2> <ol> <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>{{ taxonomy_admin_link }}</em>.{% endtrans %}</li> <li>{% trans %}Click <em>Add vocabulary</em>.{% endtrans %}</li> <li>{% trans %}In the <em>Name</em> 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 %}</li> <li>{% trans %}Click <em>Save</em>. Your vocabulary will be created and you will see the page that lists all the terms in this vocabulary.{% endtrans %}</li> <li>{% trans %}Optionally, click <em>Add term</em> to add a term to the new vocabulary. In the <em>Name</em> field, enter the term name (for example "Butter"). Click <em>Save</em>. You will receive a confirmation about the term you created. You may optionally continue to add more terms.{% endtrans %}</li> <li>{% trans %}If you have the Field UI module installed, follow the instructions on the related <em>Adding a reference field to an entity sub-type</em> topic to add a taxonomy reference field to the entity type of your choice. The settings page will allow you to choose the <em>Vocabulary</em> that you created as the vocabulary to reference.{% endtrans %}</li> <li>{% trans %}You may also want to configure the display and form display of the new field (see related topics).{% endtrans %}</li> </ol> <h2>{% trans %}Additional resources{% endtrans %}</h2> <ul> <li><a href="https://www.drupal.org/docs/user_guide/en/structure-taxonomy-setup.html">{% trans %}User Guide: Setting up a taxonomy{% endtrans %}</a></li> </ul>
File
-
core/
modules/ help_topics/ help_topics/ taxonomy.configuring.html.twig
View source
- ---
- 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.module', {'modules': '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')) %}
- <h2>{% trans %}Goal{% endtrans %}</h2>
- <p>{% 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 %}</p>
- <h2>{% trans %}Who can configure a taxonomy vocabulary?{% endtrans %}</h2>
- <p>{% trans %}Users with the <em>{{ taxonomy_permissions_link }}</em> 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 <em>Administer fields</em> permission for the entity you are adding the field to.{% endtrans %}</p>
- <h2>{% trans %}Steps{% endtrans %}</h2>
- <ol>
- <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>{{ taxonomy_admin_link }}</em>.{% endtrans %}</li>
- <li>{% trans %}Click <em>Add vocabulary</em>.{% endtrans %}</li>
- <li>{% trans %}In the <em>Name</em> 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 %}</li>
- <li>{% trans %}Click <em>Save</em>. Your vocabulary will be created and you will see the page that lists all the terms in this vocabulary.{% endtrans %}</li>
- <li>{% trans %}Optionally, click <em>Add term</em> to add a term to the new vocabulary. In the <em>Name</em> field, enter the term name (for example "Butter"). Click <em>Save</em>. You will receive a confirmation about the term you created. You may optionally continue to add more terms.{% endtrans %}</li>
- <li>{% trans %}If you have the Field UI module installed, follow the instructions on the related <em>Adding a reference field to an entity sub-type</em> topic to add a taxonomy reference field to the entity type of your choice. The settings page will allow you to choose the <em>Vocabulary</em> that you created as the vocabulary to reference.{% endtrans %}</li>
- <li>{% trans %}You may also want to configure the display and form display of the new field (see related topics).{% endtrans %}</li>
- </ol>
- <h2>{% trans %}Additional resources{% endtrans %}</h2>
- <ul>
- <li><a href="https://www.drupal.org/docs/user_guide/en/structure-taxonomy-setup.html">{% trans %}User Guide: Setting up a taxonomy{% endtrans %}</a></li>
- </ul>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.