Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Image manipulations with file field in simple grid

Status Open
Add-on / Version Simple Grids & Tables 1.5.3
Severity
EE Version 7.2

Kevin Chatel

Nov 22, 2022

Hi,
I’m not sure if I’m getting the syntax correctly, but if I use a file field in a grid element I cannot use EE’s Image manipulations on it. It just prints out the tag instead of rendering the image
https://docs.expressionengine.com/latest/fieldtypes/file.html#on-the-fly-image-manipulations

We’d like to convert uploaded images to webp in simple grid fields.

Let me know if maybe I’m not doing it correctly. This is a simple Grid inside a block

Example code

{cards} {!-- Grid Field --}
  <article id="w-node-019eb1c9-{bloqs:id}-{row_id}" class="service-card">
     <img src="{img_thumb}" loading="lazy" alt="{ttl}" class="service-card-img"> {!-- File Field --}
     <div class="service-card-contents">
	<div class="h3">{ttl}</div>
	<div class="spacer-m"></div>
	<div class="body-regular-medium">{bdy}</div>
    </div>
  </article>
{/cards}

 

Login to reply