All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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: File field in grid doesn’t work as intended

Status Resolved
Add-on / Version Simple Grids & Tables 1.5.3
Severity
EE Version 7.1.6

Kevin Chatel

Nov 01, 2022

I currently have a block with a simple grid which has 3 fields
Image (img_thumb)
Title (ttl)
Body (bdy)

I have no issues displaying the contents of the Title and Body, The image just prints out the field {img_thumb} in the rendered template. If I add prefix=“st:” it fails to render the ExpressionEngine content. it just prints out the entire code.
This is how I’m using it

{cards}
	<article id="w-node-019eb1c9-{bloqs:id}-{row_id}" class="service-card">
		<img src="{img_thumb}" loading="lazy" alt="{ttl}" class="service-card-img">
		<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}

I’ve attached 2 screenshots. the second one is the inspect in Chrome showing the {img_thumb} being rendered. Another weird bug is if I do

{img_thumb}
<img src="{url}" loading="lazy" alt="{ttl}" class="service-card-img">
{/img_thumb}

I’m able to see the image in the template, however it stops rendering the rest of the code. So the Title and Body aren’t showing

I was able to get it to work. Which i don’t think it’s ideal by wrapping the entire code in within the image tag

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

Sorry for the mouth full. trying to be thorough.
Regards
Kevin

#1

BoldMinded (Brian)

Comment has been marked private.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

BoldMinded (Brian)

Comment has been marked private.

Login to reply