Jump to content

Recommended Posts

Posted

I appreciate the various layout options and the inclusion of more images in the 5.x widgets, but it seems the new widgets don’t use thumbnails even if they are available. Example: Here is a Record Feed widget which shows the images in a size of just 30×30 pixels, yet it loads the full size record images, which might be 5000 pixels wide each. 😱 Please add a condition to use the thumbnail when available. 

Bildschirmfoto2024-12-14um09_03_06.png.336f1f6cc6e72ce2351584d502715e65.png

Posted (edited)

ACP > Pages > Page Management > Templates > Database Templates >  Listing > recordRow

Find:

		{{if $row->showRecordImage()}}
		    <figure class="ipsData__image">
			    {{if $row->record_image}}
				    <img src="{file="$row->record_image" extension="cms_Records"}" loading="lazy" alt="">
			    {{else}}
				    <i></i>
			    {{endif}}
		    </figure>
		{{endif}}

Replace with:

		{{if $row->showRecordImage()}}
		    <figure class="ipsData__image">
                 {{if $row->record_image_thumb}}
				   <img src="{file="$row->record_image_thumb" extension="cms_Records"}" loading="lazy" alt="">
			     {{elseif $row->record_image}}
                   <img src="{file="$row->record_image" extension="cms_Records"}" loading="lazy" alt="">
                    {{else}}
				    <i></i>
			    {{endif}}
		    </figure>
		{{endif}}

Wait 5 minutes for the widget to refresh.

Edited by SeNioR-
  • Recently Browsing   0 members

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