Hi, I have an array and I can't work out how to get the values properly:
downloads:
-
text: 'Annual Implementation Plan'
dl:
user/pages/02.our-school/06.documentation/file-01.docx:
name: file-01.docx
type: application/vnd.openxmlformats-officedocument.wordprocessingml.documen t
size: 321505
path: user/pages/02.our-school/06.documentation/file-01.docx
If I do this I can get the invidual values inside the 'dl' array:
{% for item in page.header.downloads %}
{% for item in item.dl %}
<a href="{{ item.path }}" class="item">{{ item.text }} {{ item.size }}</a>
{% endfor %}
{% endfor %}
But then I can't get item.text because it's outside the loop, in the loop above... thanks...