From c469f0eab1ce25c2a15142fca5046a7b9e4fe810 Mon Sep 17 00:00:00 2001 From: rdrew Date: Thu, 5 Dec 2024 12:28:08 -0400 Subject: [PATCH] template stuff --- .../taxonomy-term--scholars.html.twig | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/main_layouts/taxonomy-term--scholars.html.twig diff --git a/templates/main_layouts/taxonomy-term--scholars.html.twig b/templates/main_layouts/taxonomy-term--scholars.html.twig new file mode 100644 index 0000000..2a7e66a --- /dev/null +++ b/templates/main_layouts/taxonomy-term--scholars.html.twig @@ -0,0 +1,37 @@ +{# +/** + * @file + * Theme override to display a taxonomy term. + * + * Available variables: + * - url: URL of the current term. + * - name: (optional) 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: + * @code + * {{ content|without('description') }} + * @endcode + * - 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 template_preprocess_taxonomy_term() + */ +#} + + + {{ title_prefix }} + {% if name and not page %} +

{{ name }}

+ {% endif %} + {{ title_suffix }} + {{ content }} + {{ content.field_email|add_class('test-class') }} + +{{ dump(_context) }} +{# #}