Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Asutosh,

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

View solution in original post

2 Replies

Avatar

Level 10

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. 

Avatar

Correct answer by
Level 10

Hi Asutosh,

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