taxonomy-term.html.twig
taxonomy-term.html.twig
Default theme implementation to display a taxonomy term.
Available variables:
- url: URL of the current term.
- name: Name of the current term.
- content: Items for the content of the term (fields and description). Use 'content' to print them all, or print a subset such as 'content.description'. Use the following code to exclude the printing of a given child element:
{{ content|without('description') }}
- attributes: HTML attributes for the wrapper.
- page: Flag for the full page state.
-
term: The taxonomy term entity, including:
- id: The ID of the taxonomy term.
- bundle: Machine name of the current vocabulary.
- view_mode: View mode, e.g. 'full', 'teaser', etc.
See also
template_preprocess_taxonomy_term()
File
core/modules/taxonomy/templates/taxonomy-term.html.twigRelated topics
- Theme system overview
- Functions and templates for the user interface that themes can override.
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!templates!taxonomy-term.html.twig/8.1.x