In depth look at the images field type

Posted 27th Oct 2017

#fields #images

Admin > Setup > Fields

Add a new field called 'images'.

Creating a new images field
Creating a new images field Zoom

Admin > Setup > Fields > Details (tab)

The descriptions in the fields are detailed with no need here to explain each one. The 'default value' is an interesting one though. If you want a default image, you can select a page which has (a) been created with a template which has this 'images' field on it and (b) an image uploaded to the field.

Images field details tab
Images field details tab Zoom

Admin > Setup > Fields > Input (tab)

I like to use the max image dimensions here. If you have a site where users might upload massive digital file 5MB+ then you can resize them on upload instead. So only a copy (in this example) at 2500px wide would exist on the server, rather than the original image. Make sure you choose the maximum dimension that will ever be needed on your site or you'll end up with images that are too small (or leave blank if you've got plenty of storage).

Images field input tab
Images field input tab Zoom

Admin > Setup > Fields > Access (tab)

Images field access tab
Images field access tab Zoom

Admin > Setup > Fields > Advanced (tab)

Images field advanced tab
Images field advanced tab Zoom

Admin > Setup > Fields > Actions (tab)

This tab is super useful for adding or removing this field in bulk to/from multiple templates. You can also clone the field from here if you need another field of the same type that is similar other than a few details. For example, you might want to clone images (multiple images field) and create 'featuredImage' (single image field). Then you can just change the maximum files allowed in the details tab for this new field.

Images field actions tab
Images field actions tab Zoom

Admin > Setup > Fields > Delete (tab)

You can permanently delete the field here.

NOTE: This is not the same as removing a field from a template. This deletes the field sitewide so it will disappear from your templates and the data will also be deleted.

Images field delete tab
Images field delete tab Zoom

Feedback & support

I hope you enjoyed this tutorial. You can support pwtuts by following on @pwtuts. You can also donate at paypal.me/swcarrey to help support the site which would be awesome!

Related tutorials / See all

Suggest a tutorial

Please note: I do not store any of this information, it's simply used to send me an email. Your email address is required so I can get clarification on your request if needed.