Ibai Posted August 22, 2018 Posted August 22, 2018 Hi, I added a "Upload" field that allows multiple image uploads. How can I get the thumbnail of the image in the display options? This is what I have and I'd like that the <img> src would be the thumbnail. {{foreach $value as $foto}} <a href="{$foto}" data-ipslightbox-group="galeria" data-fullurl="{$foto}" data-ipslightbox="" class="lightbox-galeria"> <img src="{$foto}"> </a> {{endforeach}} On the other hand, if there's no image uploaded (because I set it to be optional), {$value} returns the URL base of the uploads folder. How can I avoid it? Cheers, Ibai
opentype Posted August 22, 2018 Posted August 22, 2018 36 minutes ago, Ibai said: On the other hand, if there's no image uploaded (because I set it to be optional), {$value} returns the URL base of the uploads folder. How can I avoid it? Wrap the output with: {{if $formValue}} //Your output {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.