diff --git a/templates/paragraphs/paragraph--uw-para-stories-block.html.twig b/templates/paragraphs/paragraph--uw-para-stories-block.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..5a10c2ce0068c0c9a7d4b5711cb5926bd27bb183 --- /dev/null +++ b/templates/paragraphs/paragraph--uw-para-stories-block.html.twig @@ -0,0 +1,11 @@ +{% set stories = [] %} +{% for item in content.field_uw_story_items|field_value %} + {% set stories = stories|merge([{ title: item['#paragraph'].field_uw_story_title.value, content: item['#paragraph'].field_uw_story_content.value}]) %} +{% endfor %} + +{% include "@organisms/single-page/stories-block/stories-block.twig" with { + "anchor_link": content.field_uw_anchor_link.0['#context'].value, + "display_title": content.field_uw_display_title.0['#markup'], + "title": content.field_uw_block_title.0['#context'].value, + "stories": stories +}%}