Expand my Community achievements bar.

SOLVED

Moving tags from default to diff namespace

Avatar

Level 6

Hi All,

I need to move 30k tags which is present in /etc/tags/default to /etc/tags/<customnamespace> . I can able to move single tags each time. Since we have more tags , i need to move in bulk between different namepaces (for example 25 naespace to move )

Could you please let me know how it can be sorted?

1 Accepted Solution

Avatar

Correct answer by
Level 10

That is a lot of tags to move to a new namespace. The best way to proceed is to write a custom AEM service that can move tags. You can use the TagManager API to perform this task. See:

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/tagging/TagManager.html#moveTag(com.day.c..., java.lang.String)

If you have not used TagManager API before - see this AEM Community article to get up and running with TagManager API: 

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

That is a lot of tags to move to a new namespace. The best way to proceed is to write a custom AEM service that can move tags. You can use the TagManager API to perform this task. See:

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/tagging/TagManager.html#moveTag(com.day.c..., java.lang.String)

If you have not used TagManager API before - see this AEM Community article to get up and running with TagManager API: 

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

Avatar

Level 1

moveTag method of TagManager does not create cq:moveTo and cq:backlinks property. It just moves the tag from one location to another. have you come across this scenario?