Expand my Community achievements bar.

SOLVED

cq Tag in DOM. Wenn i publisc

Avatar

Level 2
There are cq(cq, data-path, data-config) Tags that appear on the page(Qui correspont un composant) also . I would like to know how can tone remove them, wenn when I publish a page.
1 Accepted Solution

Avatar

Correct answer by
Level 10

Typically - you do not have to remove tags when you publish a page. If you don't want the tags - remove them from the page. See this topic on how to delete tags:

https://docs.adobe.com/docs/en/cq/5-6-1/wcm/tag_admin.html#Deleting Tags

View solution in original post

3 Replies

Avatar

Level 10

You can remove tags like this using a DOM parser like JSOUP. You can embed this API into AEM. If you want these removed during publish - write a custom publish workflow model. Then write a custom step that uses JSOUP API. Then when you publish the page - the custom workflow step will use the JSOUP API to modify the DOM and remove the tag. 

Avatar

Correct answer by
Level 10

Typically - you do not have to remove tags when you publish a page. If you don't want the tags - remove them from the page. See this topic on how to delete tags:

https://docs.adobe.com/docs/en/cq/5-6-1/wcm/tag_admin.html#Deleting Tags

Avatar

Level 2
Thank you very much. I'll integrate the API in the instance