Skip to content
Snippets Groups Projects
Commit 88858661 authored by l26yan's avatar l26yan
Browse files

ISTWCMS-2448 Add options image src and alt

parent c5f4694e
No related branches found
No related tags found
No related merge requests found
......@@ -6,17 +6,14 @@
link_uri: item['#paragraph'].field_uw_option_link.value[0]['uri'],
link_title: item['#paragraph'].field_uw_option_link.value[0]['title'],
link_colouring: item['#paragraph'].field_uw_option_colouring.value,
img_src: item['#paragraph'].field_uw_option_image.value
img_src: file_url(item['#paragraph'].field_uw_option_image.entity.uri.value),
img_alt: item['#paragraph'].field_uw_option_image.alt
}])
%}
{{ vardumper(item['#paragraph'].field_uw_option_colouring.value) }}
{% endfor %}
{% include '@organisms/single-page/options-block/options-block.twig' with {
'display_title': display_title,
'title': content.field_uw_block_title|field_value,
'options': options,
'options': options
}%}
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