Forums / Setup & design / eZImage datatype - Possible to make "Alternative image text" required?

eZImage datatype - Possible to make "Alternative image text" required?

Author Message

Bruce Morrison

Monday 02 May 2011 10:42:22 pm

Hi all

I'm wondering if it's possible to make the "Alternative image text" component of the eZImage datatype a required field. It would only be required if an image is added.

The use case is a general one where you need to produce an accessible site and all images must have alt text.

I've had a poke around the codebase but it doesn't seem possible.

It would be good to know

  1. if this is possible?
  2. if anyone else has the requirment

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Marko Žmak

Monday 02 May 2011 11:26:18 pm

What about using a content edit handler?

Serwatka wrote a blog entry about it:

  • http://serwatka.net/blog/enhanced_content_edit_handler_for_validation_rules_in_ez_publish_4_1

(but it seems his site is currently down)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth