Forums / Developer / Alternative Image Text Mandatory

Alternative Image Text Mandatory

Author Message

John Smith

Thursday 29 September 2005 3:47:35 am

Do anyone know how to make any of the input text field mandatory on the admin side of the site.

For e.g. While creating a new image I want "Alternative Image Text" input text field to be mandatory like the "Name" field for the image name.

So that if someone left this field blank while uploading an image, system should give an error.

Please help

Cheers

Mark Marsiglio

Thursday 29 September 2005 10:53:41 am

We are planning to add this, but have not gotten to it yet. Our plan was to use a javascript validation on the form field to warn users against leaving alt text empty, and to provide a reminder as to what alt text should be (concise description of important visual elements in the image).

We had originally decided against making it required (non-blank) because we felt that there are some images that should contain null alt tags (those that are only decorative or background). However, lately we are thinking that there will not likely be many such images outside of the templates. Maybe required is a better idea.

Let us know if you get anywhere on this, and the online editor issue, any time soon.

Thanks
mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

John Smith

Friday 30 September 2005 1:41:36 am

Hi mark,

Thanks for your kind reply and help. I think it is very necessary to make the 'Alternative Image Text' mandatory input field to meet standards and validations of the page. To solve the problem regarding alt tags for decorative images, we can always use a space instead of writing anything in the "Alternative Image Text" input field when it is made mandatory.

Another thing which I have noticed is regarding the uploading of the images in an article. Anybody can upload an image in the "Related Objects" section with the use of "Upload New" button without writing any alternative image text, it totally bypasses the "Image Creation" screen. Similar thing is happening with Online editor upload functionality. So the result is anybody can upload any image without using "Alternative Image Text" straight way. We need some kind of validation there as well. What you think?

Cheers

Timmothy Green

Wednesday 09 November 2005 12:03:52 pm

Here in the U.S. we have something called Section 508. Which means all Federal websites or websites provided under a federal contract must comply with certain accessiblity standards. One of these standards is the use of "Alt Text" tags. It would be beneficial to be able to require "Alternative Image Text" in these cases.

More info on Section 508: http://www.section508.gov

Automation Technologies, Inc.
http://www.ati4it.com

Roland Greinstetter

Monday 15 October 2007 8:46:11 am

hi,

seems there is no solution up to now, to comply with w3c wai standards i made a new override-template for ezimage where i check if an "Alternative Image Text" was given for the image. if not i display the original filename as "Alt Text".

<img src={$image.url|ezroot} width="{$image.width}" height="{$image.height}" {section show=$hspace}hspace="{$hspace}"{/section} style="border: {$border_size}px;" alt="{if $image.text|eq('')}{$image.original_filename}{else}{$image.text|wash(xhtml)}{/if}">

i know its not the best solution, but one which works

so long

John Smith

Monday 28 April 2008 2:45:33 am

Hi all,

Are we expecting any fix for alternative text (images) in new online editor (ez4.0)?

This is a serious issue in website accessiblity.

Cheers.

Any reply form ezcrew will be appreciated..

John Smith

Tuesday 02 September 2008 8:23:45 am

I think it is the still same issue after three years. Not been introduced in ezpublish 4.0.x.

Anyone????

Mark Marsiglio

Saturday 13 September 2008 11:33:55 am

John - thanks for mentioning this in the other thread - link here is for refernece:

http://ez.no/developer/forum/extensions/call_for_testers_new_online_editor/(offset)/200#msg173400

Support for alt text is included in the new ezoe...

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

eZ debug

Timing: Jan 14 2025 21:45:38
Script start
Timing: Jan 14 2025 21:45:38
Module start 'content'
Timing: Jan 14 2025 21:45:38
Module end 'content'
Timing: Jan 14 2025 21:45:38
Script end

Main resources:

Total runtime0.1324 sec
Peak memory usage6,144.0000 KB
Database Queries134

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 684.4219214.7891
Module start 'content' 0.00610.0056 899.2109193.4297
Module end 'content' 0.01170.1206 1,092.64061,482.2109
Script end 0.1323  2,574.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00705.3124200.0004
Check MTime0.00151.0960200.0001
Mysql Total
Database connection0.00060.468510.0006
Mysqli_queries0.083162.79421340.0006
Looping result0.00120.91931310.0000
Template Total0.120190.710.1201
Template load0.00372.786110.0037
Template processing0.116487.908910.1164
Override
Cache load0.00332.529110.0033
Sytem overhead
Fetch class attribute can translate value0.00090.701210.0009
XML
Image XML parsing0.00030.197210.0003
General
dbfile0.00030.2024140.0000
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs