Expand my Community achievements bar.

SOLVED

Validate cq:tags on AEM

Avatar

Level 4

Hello Community - I see some issues with the cq:tags. The tags authored as part of page properties is getting deleted. from the jcr:content. I suspect some of the tags are not validate and because of that, day cq tagging service listener deletes the tags.

 

Is there a way to validate the tags programmatically? If so, please provide more details on how to achieve it.

 

We have huge set of tags and validating manually is not an option for us.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can run the query builder queries for the pages which has those old tags

http:localhost:4502/libs/cq/search/content/querydebug.html

View solution in original post

3 Replies

Avatar

Community Advisor

I have faced similar use case but in my case Tags were getting removed from cq:tags property if the tags does not exist in the repository(/content/cq:tags). This was happening only with OOTB cq:tags property but not with the other custom tag based property.

So it looks like your content is still tagged with old tags which does not exist in AEM. Please confirm if that is the case.

Avatar

Level 4

Thanks for your reply. is there any way to check if there are any old tags which doesn't exists and still being referenced in some of the pages.

Avatar

Correct answer by
Community Advisor

You can run the query builder queries for the pages which has those old tags

http:localhost:4502/libs/cq/search/content/querydebug.html