Multiple images in [each] tag
-
Hi,
I have a pod with two image fields (‘fotos’ and ‘foto’). The first allows for multiple images, the second for one image only.
On a test page I ‘call’ the images in the template like so:<div class="test-multiple"> [each fotos] {@_img} [/each] </div> <div class="test-single"> {@foto._img} </div>
This works in the sense that all intended images turn up. But in the case of the multiple-image test, Pods shows the thumbnail version (150px) of each image (even though I did not write @_img.thumbnail in the magic tag). In the second test, with a single image, Pods produces the native src set version, and chooses the largest version possible for the screen in use (in my case 2560px) – as expected.
I don’t understand why the multiple-image test does not do the same. It appears that the [each]-tag changes this behaviour. It should (imho ;-)) produce the src set for each image, just as is the case with a single image.
Is this a bug, or am I doing something wrong in the multiple-image test?
Thanks in advance!
(p.s. I dedicated a (slightly more elaborate) post on Slack to this last week as well, but there hasn’t been an answer there. If this gets addressed here, I will mark that post on slack as answered.)
- The topic ‘Multiple images in [each] tag’ is closed to new replies.