diff --git a/web/themes/custom/digital_gov/templates/node/node--guides.html.twig b/web/themes/custom/digital_gov/templates/node/node--guides.html.twig index c6a84bb1..95e19ae6 100644 --- a/web/themes/custom/digital_gov/templates/node/node--guides.html.twig +++ b/web/themes/custom/digital_gov/templates/node/node--guides.html.twig @@ -89,8 +89,9 @@ {{ include('@digital_gov/partials/guides/guide-content.html.twig') }} {% endif %} {# NOT-MIGRATED #} - {# if .Parent.Params.glossary #} - {# partial "core/glossary.html" . #} - {# endif #} + + {% if node.field_glossary.target_id %} + {{ drupal_view('glossary_accordion', 'guide_overlay', node.field_glossary.target_id) }} + {% endif %} diff --git a/web/themes/custom/digital_gov/templates/views/views-view--glossary-accordion--guide-overlay.html.twig b/web/themes/custom/digital_gov/templates/views/views-view--glossary-accordion--guide-overlay.html.twig new file mode 100644 index 00000000..382b43de --- /dev/null +++ b/web/themes/custom/digital_gov/templates/views/views-view--glossary-accordion--guide-overlay.html.twig @@ -0,0 +1,27 @@ + diff --git a/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--description--value.html.twig b/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--description--value.html.twig new file mode 100644 index 00000000..a774f242 --- /dev/null +++ b/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--description--value.html.twig @@ -0,0 +1 @@ + diff --git a/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--name.html.twig b/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--name.html.twig new file mode 100644 index 00000000..03ef7ff4 --- /dev/null +++ b/web/themes/custom/digital_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--name.html.twig @@ -0,0 +1,5 @@ + + + diff --git a/web/themes/custom/digital_gov/templates/views/views-view-list.html.twig b/web/themes/custom/digital_gov/templates/views/views-view-list.html.twig index 0decd0d3..25071cf7 100644 --- a/web/themes/custom/digital_gov/templates/views/views-view-list.html.twig +++ b/web/themes/custom/digital_gov/templates/views/views-view-list.html.twig @@ -18,10 +18,10 @@ * @ingroup themeable */ #} -{% if attributes -%} +{% if attributes.storage %} {# override: changed div to section #} - {% endif %} +{% endif %} {% if title %}

{{ title }}

{% endif %} @@ -36,6 +36,6 @@ - {% if attributes -%} +{% if attributes.storage %} {% endif %}