Jump to content

Recommended Posts

Posted

Does anyone know if it's possible to configure the images field to require description text? A fallback would be to write an onsubmit handler in javascript for the admin - but if it's possible to enforce at the configuration level, that seems like a much cleaner solution.

EDIT: the core image field is already in heavy use. If possible, I'd like to modify existing instances rather than create a custom field.

Posted

Oh, not sure if that is possible.

You can always create a separate field for description and make that required (then set the existing description field to 0 rows so it does not show).

  • Like 1
Posted

Thanks Joss - that's a good workaround. I hadn't thought of that. Though, there would still be some instances with more than one image (varies template to template).

Posted

Well, you can do various things. When I do galleries or slide shows I sometimes like complicated overlays. So I might have a couple of text fields (one for image title and one for some text) and maybe a secondary image or using the image thumbnail module so that I can create a small, cropped thumbnail to use as a detail image.

And then I wrap that whole lot up in a repeater field

You can get too complicated of course .... :)

Oh, and don't forget you can set whether a field is required or not on a template-to-template basis.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...