Feature #60298
closedRequired fields for alttext etc. in FAL
0%
Description
As a government agency we are bound by accessibility laws to make sure every image on our websites has an alternative text.
Of course, you can make certain fields mandatory with code like this in /typo3conf/extTables.php:
$TCA['sys_file_metadata']['columns']['alternative']['config']['eval'] = 'required';
This only helps when you edit files. And knowing my editors they rarely do this.
But this has no impact on adding images to a tt_content record. You can easily use an image without alternative text in a gallery.
Now, adding
$TCA['sys_file_reference']['columns']['alternative']['config']['eval'] = 'required';
to extTables.php an editor can only save a tt_content record if the alternative text is filled out. But then the editor can't reuse the text he entered in the file record.
Is there a way to make make sure a tt_content record with images can only be saved if either the alttext has been filled out in the metadata table, or is overwritten with another text in the reference table?
Any ideas? Or is this not possible (yet)?
Updated by Markus Klein over 10 years ago
You should really ask such questions on the mailing list or the forums. This is not the place for questions and not too many people will actually read it.
Regarding your question: I never had that use case and can't help you out here. Sorry.
Updated by Florian Seirer over 10 years ago
You're right, I'll post it in the mailing list.
This issue can be closed.