Skip to content
Snippets Groups Projects
Commit 8f9c444b authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-2372: Adding stories block template

parent 096c4adb
No related branches found
No related tags found
No related merge requests found
{% 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
}%}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment