Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Yesterday at 01:29 PM
The Honor Empire Posted February 18, 2016 Share Posted February 18, 2016 I noticed that the gallery widget is using Medium images. Is it possible to force small for the widget? Link to comment Share on other sites More sharing options...
The Honor Empire Posted February 24, 2016 Author Share Posted February 24, 2016 Any ideas? Thanks Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 24, 2016 Share Posted February 24, 2016 Yes, if the image has the medium image, it uses it: {{if $image->medium_file_name}} <a href='{$image->url()}' title='{lang="view_this_image" sprintf="$image->caption"}' class='ipsThumb ipsThumb_bg ipsThumb_large' style='background-image: url("{file="$image->medium_file_name" extension="gallery_Images"}");'> <img src='{file="$image->medium_file_name" extension="gallery_Images"}' alt=''> </a> {{else}} <a href='{$image->url()}' title='{lang="view_this_image" sprintf="$image->caption"}' class='ipsNoThumb ipsNoThumb_video ipsThumb_bg ipsThumb_large'></a> {{endif}} Template Gallery -> Front -> Widgets -> imageRow. Link to comment Share on other sites More sharing options...
The Honor Empire Posted February 24, 2016 Author Share Posted February 24, 2016 Thanks! I changed them to $image->small_file_name and that works. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.