Copy link to clipboard
Copied
Inside a Word template file I am trying to iterate through a JSON array to show property images. I am experiencing a glitch where the placeholder image is being replaced, but it is not looping through each image; it is repeating the first image in the array.
I have the following code set in the Alt Text of the placeholder image:
{
"location-path": "url",
"image-props": {
"alt-text": "Property Photos"
}
}
In the template file I have:
{% repeating-section SubjectProperty.PropertyPhotos %}
{{ url }}
{% end-section %}
I added the url variable inside the loop just to confirm it is looping through the array. As you can see, it is only showing the first image in the array, while the urls are correct.
This is the output:
I have scoured forums and followed different examples advised to no avail. Any help would be greatly appreciated!
Have something to add?