We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to output an image manipulation within File Grid field type?

How Do I?

liberty79's avatar
liberty79
135 posts
5 years ago
liberty79's avatar liberty79

I’m trying to use image manipulations in a File Grid field type. The image manipulation is called “thumbnail” and I’ve confirmed that the folder “_thumbnail” and the images within are being generated.

What is the correct syntax for using these thumbnails within a File Grid?

This works and puts outputs the full size image:

{grid_image}
{grid_image:grid_image}
{/grid_image}

This does not work to output the thumbnail instead of the full size image:

{grid_image}
{grid_image:thumbnail
{/grid_image}

This also does not work:

{grid_image}
{grid_image:grid_image:thumbnail
{/grid_image}

edit: apologies, i can’t get my example code to show up without being parsed. I think what’s showing gives you the gist. There’s an image tag between the opening and closing File Grid tags.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

Does it work using the file tag pair- a la this example:

{grid_field}
  {grid_field:file}
      Extension: {extension}
      Upload date: {upload_date format="%Y %m %d"}
      URL: {url}
      Custom med thumbnail url: {url:thumbnail}
  {/grid_field:file}
{/grid_field}

Where ‘grid_field’ is the short name of the grid field.

       
liberty79's avatar
liberty79
135 posts
5 years ago
liberty79's avatar liberty79

Hi Robin, that does work! Thanks so much

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

That glad did it!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.