Just started playing around with twig templates and i've ran into an issue. I got an array i'm looping over and extracting data from, within this array i've got another array (images) that I need to access, problem is I can't seem to get it to work.
Here's the feed i've got
0 =>
array (size=8)
'id' => int 1
'url' => string 'http://localhost' (length=16)
'image' => string '8cgbfenx2n1.png' (length=15)
'type' => string 'image' (length=5)
1 =>
array (size=10)
'id' => int 17
'images' =>
array (size=3)
0 => string 'xjv5y4asev2.png' (length=15)
1 => string 'kwwss8f6r34.gif' (length=15)
2 => string '68yfnckk3c5.png' (length=15)
'text' => string 'text' (length=4)
'type' => string 'article' (length=7)
I'm then looping over and accessing like so
{%- if feed is not empty -%}
{% for feedItems in feed %}
<!-- article -->
{% if feedItems.type == 'article' %}
<!-- image -->
<div class="gridTile-article-image">
{% for image in feedItems.images %}
{{ image }} <br />
{% endfor %}
</div>
{% endif %}
{% endfor %}
{% endif %}
This doesn't throw an error but also doesn't output anything, anyone got any ideas have to achieve this?
Thanks!