how to update alt tag of images in AEM for all uploaded images | Community
Skip to main content
New Participant
October 16, 2015
Solved

how to update alt tag of images in AEM for all uploaded images

  • October 16, 2015
  • 2 replies
  • 3269 views

my website don't have alt tags for any image, uploaded using AEM. There are around 30000 images in my website. Is there any way that i can update alt tag for all images by uploading any file/csv which contains the list of alt text? Manual update will take lots of time to complete.

please suggest.

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 Lokesh_Shivalingaiah

Hi Asutosh,

 You will have to write a service(code) or a script to do the same.

2 replies

smacdonald2008
New Participant
October 16, 2015

The typical way to set alt text (aka alt tags) to assets is manually. See:

https://www.youtube.com/watch?v=5AEFSXn--Ek

However - one way to automatically add these alt text values to assets - you will have to write a custom service. You will have to use QUeryBuilder or JCR SQL2 to search for these nodes. The property that stores these values is shown in this illustration:

[img]damTags.png[/img]

You set them in the service by using JCR API. TO learn how to set node property values using the JCR API -- see:

https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

use the node object's setProperty method. 

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
October 16, 2015

Hi Asutosh,

 You will have to write a service(code) or a script to do the same.