Jump to content

Pages Upload field value: Getting thumbnails?


Ibai

Recommended Posts

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...