Adding alttext to image in AEM 6.4

Avatar

Avatar

minisanu

Avatar

minisanu

minisanu

10-01-2020

Hi Everyone,

I have a requirement where I have to add altext to all images in my website.

1)Wherever there is a fileupload in dialog, i need to add a textfield and name it as altext.

2)I need to add altext as metadata for all images.

3)altext name should be name of image without the extension of image file name.

 

Whenever I query for image using foundation/components/image I am able to get results.But how to get image which has a fileupload? and fulfill above conditions

 

Please help me in adding a fiddle script to do this.

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

14-01-2020

Hi,

You can search uploaded file inside /content/ by executing a query against nt:file with the name of name property of image component(file)

Answers (0)