statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Assets Fieldtype: min_files #980

Closed univers-andrew closed 1 year ago

univers-andrew commented 1 year ago

Currently there is a max_files configuration option for the assets fieldtype: https://statamic.dev/fieldtypes/assets.

I've come across a few situations where it would be super handy to have the option to have a min_files minimum configuration as well, depending on the site's design.

This is often the ideal CMS experience for editors in many situations I've come across recently — a single assets fieldtype can be utilised in Statamic (so clean), and we can dynamically create the layouts in the template based on the order or images within the fieldtype, rather than using multiple assets fieldtypes for different images in the layout.

Happy to expound further on this, if it isn't already on your radar!

With thanks, Andrew 👋