multi-node-add-list.html.twig in Multi Node Add 8
Default theme implementation to list node types available for adding content.
This list is displayed on the Add content admin page.
Available variables:
- types: A list of content types, each with the following properties:
- add_link: Link to create a piece of content of this type.
- description: Description of this type of content.
See also
1 theme call to multi-node-add-list.html.twig
- MultiNodeAddController::overview in src/
Controller/ MultiNodeAddController.php - Provides links to specific bundle multi node add forms.
File
templates/multi-node-add-list.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to list node types available for adding content.
- *
- * This list is displayed on the Add content admin page.
- *
- * Available variables:
- * - types: A list of content types, each with the following properties:
- * - add_link: Link to create a piece of content of this type.
- * - description: Description of this type of content.
- *
- * @see template_preprocess_node_add_list()
- *
- * @ingroup themeable
- */
- #}
- {% if types is not empty %}
- <dl class="multi-node-add-type-list">
- {% for type in types %}
- <dt>{{ type.add_link }}</dt>
- <dd>{{ type.description }}</dd>
- {% endfor %}
- </dl>
- {% else %}
- <p>
- {% set create_content = url('admin/structure/types/add') %}
- {% trans %}
- You have not created any content types yet. Go to the <a href="{{ create_content }}">content type creation page</a> to add a new content type.
- {% endtrans %}
- </p>
- {% endif %}