Publisher does not support the Fluid field type. 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 Resolved
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}

 

#1

BoldMinded (Brian)

Sorry for the delayed response on this. I agree it would be nice if these worked, but it’s going to take a bit of refactoring. I’ll get to it when I can.

#2

BoldMinded (Brian)

Comment has been marked private.

Login to reply