Bulk edit the DAM assets by adding cq:tags in the metadata for the assets | Community
Skip to main content
Sandeep_Rawat
Level 2
October 26, 2015
Solved

Bulk edit the DAM assets by adding cq:tags in the metadata for the assets

  • October 26, 2015
  • 5 replies
  • 2458 views

Hi All, I was going through the https://docs.adobe.com/docs/en/cq/5-6-1/administering/bulk_editor.html and I am able to search all the assets through this utility. I added the Custom Properties / Columns as cq:tags to edit the tags using the export, but it doesn't show the the cq:tags for the asset. Is there anyway I can export all the assets with its metadata information and add a common tags for all the assets. As adding the same tags for so many assets is difficult process, so if anyway we can do it using the export, i will be great. 

Please suggest the solution which I can use for editing the assets in one go.     

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 kautuk_sahni

Hi Sandeep Rawat

As mentioned by Scott, the needful can be achieved using Tag Manager APIs.

Please find analogous example for the same :-

Link:- https://helpx.adobe.com/experience-manager/using/tagmanager.html

// You can develop a custom event handler for Adobe Experience Manager (AEM) that uses the TagManager API to add a tag to a new page.That is, when an AEM author creates a new page using site admin, an AEM event handler is invoked and automatically tags the page. To work with tags, you use the AEM TagManager API.

 I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

5 replies

smacdonald2008
Level 10
October 26, 2015

You can use AEM Tag Manager API for this purpose. See: 

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/tagging/TagManager.html

Sandeep_Rawat
Level 2
October 26, 2015

Hi, thanks for the response, I am looking for an ootb functionality which does this as this project has no implementation. We are only managing the assets in the DAM so we don't have any projects where I can implement this.

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 26, 2015

Hi Sandeep Rawat

As mentioned by Scott, the needful can be achieved using Tag Manager APIs.

Please find analogous example for the same :-

Link:- https://helpx.adobe.com/experience-manager/using/tagmanager.html

// You can develop a custom event handler for Adobe Experience Manager (AEM) that uses the TagManager API to add a tag to a new page.That is, when an AEM author creates a new page using site admin, an AEM event handler is invoked and automatically tags the page. To work with tags, you use the AEM TagManager API.

 I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Sandeep_Rawat
Level 2
October 26, 2015

kautuksahni wrote...

Hi Sandeep Rawat

As mentioned by Scott, the needful can be achieved using Tag Manager APIs.

Please find analogous example for the same :-

Link:- https://helpx.adobe.com/experience-manager/using/tagmanager.html

// You can develop a custom event handler for Adobe Experience Manager (AEM) that uses the TagManager API to add a tag to a new page.That is, when an AEM author creates a new page using site admin, an AEM event handler is invoked and automatically tags the page. To work with tags, you use the AEM TagManager API.

 I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

 

Hi Kautuk, thanks for the response, as I need this solution for the DAM assets not with the cq page. So the user wants whenever he is uploading images, the tags should get added automatically to the image or video. And also with the existing assets in the DAM, he wants them to modify in bulk to add the tags for all the images.

I can create a servlet which can do this activity for existing assets but they want something in the DAM, which will automatically work, whenever they are uploading images.

kautuk_sahni
Community Manager
Community Manager
October 26, 2015

Hi Sandeep

You could create a custom uploading component and after uploading of assets completes, you can create a code of adding tags to the same.

Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html

//Here in doPost method you can write a code to add tags to the assets.

 

I hope this would help you.

 

Thanks and regards

Kautuk Sahni

Kautuk Sahni