Editing HTML | Community
Skip to main content
Level 2
October 16, 2015
Solved

Editing HTML

  • October 16, 2015
  • 1 reply
  • 564 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mshaji

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-a-page

1 reply

MshajiCommunity AdvisorAccepted solution
Community Advisor
October 16, 2015

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-a-page