From b5e3f3da18f5e7d65898079dda7986b10c55f66c Mon Sep 17 00:00:00 2001 From: Mark Conroy Date: Mon, 10 Nov 2025 14:24:18 +0000 Subject: [PATCH] adds options for 3 or 4 items in box links listing --- ...ov-paragraphs--localgov-box-links-listing.html.twig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/field/field--paragraph--localgov-paragraphs--localgov-box-links-listing.html.twig b/templates/field/field--paragraph--localgov-paragraphs--localgov-box-links-listing.html.twig index 3dfe6979..f50d5de7 100644 --- a/templates/field/field--paragraph--localgov-paragraphs--localgov-box-links-listing.html.twig +++ b/templates/field/field--paragraph--localgov-paragraphs--localgov-box-links-listing.html.twig @@ -42,11 +42,11 @@ {% set classes = [ 'box-links-listing__list-item', - ] + ] %} {% for item in items %} - {# - We are checking the parent here, and then using whatever layout style is chosen + {# + We are checking the parent here, and then using whatever layout style is chosen to set the width of the items. #} {% set parent = item.content['#paragraph']._referringItem.parent.parent.entity %} @@ -54,6 +54,10 @@ {% if theme == 'grid' %} {% set row_size = 'lgd-row__one-half' %} + {% elseif theme == 'grid-3' %} + {% set row_size = 'lgd-row__one-third' %} + {% elseif theme == 'grid-4' %} + {% set row_size = 'lgd-row__one-quarter' %} {% else %} {% set row_size = 'lgd-row__full' %} {% endif %}