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 should I put my code to use Crop and Fields Grid image?

News and General

alma's avatar
alma
5 posts
4 years ago
alma's avatar alma

How should I put my code to use Crop and Fields Grid image? Can you tell me a piece of code to see how to use Crop and Fields Grid image.

{exp:channel:entries channel="fotos" status="open" limit="100" show_future_entries="yes" show_expired="yes"}

{galeria}{galeria:foto}{/galeria}

{/exp:channel:entries}

I have a blog with the title FOTOS and a Grid that calls it GALERIA and I upload the image to Grid Fields FOTO. But I am not able to put the code to work with Crop to cut the images to the necessary size.

πŸ€— 1
       
Robin Sowell's avatar
Robin Sowell
13,158 posts
4 years ago
Robin Sowell's avatar Robin Sowell

I’m not entirely sure what you need to do. When you upload an image on the publish page, you’d like to crop it then? Do you need to do a manual crop or can you just have the file directory thumb settings automatically handle it?

       
alma's avatar
alma
5 posts
4 years ago
alma's avatar alma

We need it to be cut automatically in the code, we do not want to manipulate it manually, but to cut it automatically

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

So you’d set up your thumbnails in the file upload directory to crop images to the desired size. And you have to name that ‘thumbnail’. Say you name it crop1.

Then to use it in an image field loop:

{galeria}{galeria:foto:crop1}{/galeria}
πŸ‘ 1
       

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.