You are here

menu_ui.menu_operations.html.twig in Drupal 10

---
label: 'Creating a menu'
related:
  - menu_ui.content_type_configuration
  - core.menus
---
{% set structure_menu = render_var(url('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; <a href="{{ structure_menu }}"> <em>Menus</em></a>.{% 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/help_topics/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 = render_var(url('entity.menu.collection')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Create a new menu.{% endtrans %}</p>
  10. <h2>{% trans %}Steps{% endtrans %}</h2>
  11. <ol>
  12. <li>{% trans %}In the <em>Manage</em> administration menu, navigate <em>Structure</em> &gt; <a href="{{ structure_menu }}"> <em>Menus</em></a>.{% endtrans %}</li>
  13. <li>{% trans %}Click <em>Add menu</em>.{% endtrans %}</li>
  14. <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>
  15. <li>{% trans %}Enter an administrative summary, which is displayed on the <em>Menus</em> page.{% endtrans %}</li>
  16. <li>{% trans %}If your site has more than one language, choose the language for the menu.{% endtrans %}</li>
  17. <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>
  18. </ol>