Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Moving tags from default to diff namespace

Gokul2011
Level 6
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
smacdonald2008
Correct answer by
Level 10
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
smacdonald2008
Correct answer by
Level 10
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

vineetk94166090
Level 1
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?