Showing multiple images in pods template
-
Hi @jori,
I have a pod with a image upload field that allows for 5 images to be uploaded. I created a template for this pod which is working fine expect the multiple image part. I uploaded 2 images to the pod, but the template only outputs one. I checked the html being output with the element inspector (firefox developer) and found that the div for the image
<div class="wdtv_route-foto">
is output twice, but the first one is empty. The template part I use is:[if fotos] <div class="wdtv_route-row-container clear"> <p>Foto's van de route:</p> [each fotos] <div class="wdtv_route-foto"> {@fotos._img.thumbnail} </div> [/each] </div> [/if]
If needed, I can post the entire template. Do you have any ideas why the first div is empty?
i have another question about the images:
– is it possible to display the thumbnail as a link to the image in full size? So when you click on the thumbnail, the full size image gets shown.Thanks in advance,
Bert
- The topic ‘Showing multiple images in pods template’ is closed to new replies.