diff --git a/templates/compositions/ec-component-highlighted-news-block/highlighted-news-block.html.twig b/templates/compositions/ec-component-highlighted-news-block/highlighted-news-block.html.twig index c06dfa4a4..bd827b381 100644 --- a/templates/compositions/ec-component-highlighted-news-block/highlighted-news-block.html.twig +++ b/templates/compositions/ec-component-highlighted-news-block/highlighted-news-block.html.twig @@ -41,23 +41,23 @@ {% endif %} {% if items is not empty and _columns == 4 %}
-
+
{{ items.0 }}
{% if items|length > 1 %} -
+
{% for item in items|slice(1, 2) %} {{ item }} {% endfor %}
{% endif %} {% if items.3 is defined and items.3 is not empty %} -
+
{{ items.3 }}
{% endif %} {% if items|length > 4 %} -
+
{% for item in items|slice(4, 2) %} {{ item }} {% endfor %} diff --git a/templates/patterns/highlighted_list/pattern-highlighted-list--variant-four-columns.html.twig b/templates/patterns/highlighted_list/pattern-highlighted-list--variant-four-columns.html.twig index 29bd1fb8e..0beaf65f0 100644 --- a/templates/patterns/highlighted_list/pattern-highlighted-list--variant-four-columns.html.twig +++ b/templates/patterns/highlighted_list/pattern-highlighted-list--variant-four-columns.html.twig @@ -26,6 +26,7 @@ 'image_position': (loop.first or loop.index == 4) ? 'top' : '', 'divider': (loop.index == 2 or loop.index == 5) ? true : false, 'extra_classes': (loop.index == 2 or loop.index == 5) ? 'ecl-u-flex-grow-1 ecl-u-mb-m' : 'ecl-u-flex-grow-1', + 'contextual_links': item.contextual_links }, 'default') %} {% set _items = _items|merge([_item]) %} {% endfor %} diff --git a/templates/patterns/highlighted_list/pattern-highlighted-list.html.twig b/templates/patterns/highlighted_list/pattern-highlighted-list.html.twig index 1fa48a269..4d62a2e42 100644 --- a/templates/patterns/highlighted_list/pattern-highlighted-list.html.twig +++ b/templates/patterns/highlighted_list/pattern-highlighted-list.html.twig @@ -22,6 +22,7 @@ 'image_position': 'top', 'divider': true, 'extra_classes': 'ecl-u-flex-grow-1', + 'contextual_links': highlighted_item.contextual_links }, 'default') %} {% endif %} @@ -44,6 +45,7 @@ 'image_position': loop.first ? 'top' : '', 'divider': true, 'extra_classes': loop.last ? 'ecl-u-flex-grow-1' : 'ecl-u-flex-grow-1 ecl-u-mb-m', + 'contextual_links': item.contextual_links }, 'default') %} {% set _items = _items|merge([_item]) %} {% endfor %}