Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Editing HTML

Avatar

Level 2

Hi,

I'm a volunteer at a local museum and have been asked to optimize the museum website to obain a quality label for the visually impaired.

One of the requirements put forward by the auditor is that every image on the website has a meaningful ALT-attribute.

However I find it's very difficult to add ALT-attributes for every single image on the website. This envolves editing every single image in the assets and republishing every page.

My question: is it possible at all to edit the HTML code directly in Adobe CQ so as to make it less complicated and speed things up?

Thanks in advance,

Steve

1 Accepted Solution

Avatar

Correct answer by
Level 9

There may be multiple ways you can fix this issue

1. Search and replace: You need to find the pattern for image and use the cq5 search and replace tool.

http://aemfaq.blogspot.com/2013/06/content-find-and-replace-globally.html

2. Using jquery, here is one such example you find

http://stackoverflow.com/questions/5800827/automatically-adding-the-alt-attribute-to-every-image-on-...

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

There may be multiple ways you can fix this issue

1. Search and replace: You need to find the pattern for image and use the cq5 search and replace tool.

http://aemfaq.blogspot.com/2013/06/content-find-and-replace-globally.html

2. Using jquery, here is one such example you find

http://stackoverflow.com/questions/5800827/automatically-adding-the-alt-attribute-to-every-image-on-...