menu_ui.menu_operations.html.twig

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics/menu_ui.menu_operations.html.twig
  2. 11.x core/modules/menu_ui/help_topics/menu_ui.menu_operations.html.twig
---
label: 'Creating a menu'
related:
  - menu_ui.content_type_configuration
  - core.menus
---
{% set structure_menu_text %}{% trans %}Menus{% endtrans %}{% endset %}
{% set structure_menu_link = render_var(help_route_link(structure_menu_text, 'entity.menu.collection')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Create a new menu.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administration menu, navigate <em>Structure</em> &gt; {{ structure_menu_link }}.{% endtrans %}</li>
  <li>{% trans %}Click <em>Add menu</em>.{% endtrans %}</li>
  <li>{% trans %}Enter the title for the menu, which is used as the default block title if the menu is displayed as a block. If desired, also edit the machine name of the menu, which is by default derived from the title.{% endtrans %}</li>
  <li>{% trans %}Enter an administrative summary, which is displayed on the <em>Menus</em> page.{% endtrans %}</li>
  <li>{% trans %}If your site has more than one language, choose the language for the menu.{% endtrans %}</li>
  <li>{% trans %}Click <em>Save</em>. You will be on the menu editing page, ready to add links to the menu if the core Custom Menu Links module is installed; see related topics for further tasks.{% endtrans %}</li>
</ol>

File

core/modules/menu_ui/help_topics/menu_ui.menu_operations.html.twig

View source
  1. ---
  2. label: 'Creating a menu'
  3. related:
  4. - menu_ui.content_type_configuration
  5. - core.menus
  6. ---
  7. {% set structure_menu_text %}{% trans %}Menus{% endtrans %}{% endset %}
  8. {% set structure_menu_link = render_var(help_route_link(structure_menu_text, 'entity.menu.collection')) %}
  9. <h2>{% trans %}Goal{% endtrans %}</h2>
  10. <p>{% trans %}Create a new menu.{% endtrans %}</p>
  11. <h2>{% trans %}Steps{% endtrans %}</h2>
  12. <ol>
  13. <li>{% trans %}In the <em>Manage</em> administration menu, navigate <em>Structure</em> &gt; {{ structure_menu_link }}.{% endtrans %}</li>
  14. <li>{% trans %}Click <em>Add menu</em>.{% endtrans %}</li>
  15. <li>{% trans %}Enter the title for the menu, which is used as the default block title if the menu is displayed as a block. If desired, also edit the machine name of the menu, which is by default derived from the title.{% endtrans %}</li>
  16. <li>{% trans %}Enter an administrative summary, which is displayed on the <em>Menus</em> page.{% endtrans %}</li>
  17. <li>{% trans %}If your site has more than one language, choose the language for the menu.{% endtrans %}</li>
  18. <li>{% trans %}Click <em>Save</em>. You will be on the menu editing page, ready to add links to the menu if the core Custom Menu Links module is installed; see related topics for further tasks.{% endtrans %}</li>
  19. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.