cq Tag in DOM. Wenn i publisc | Community
Skip to main content
New Participant
October 16, 2015
Solved

cq Tag in DOM. Wenn i publisc

  • October 16, 2015
  • 3 replies
  • 1191 views
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.
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 smacdonald2008

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

3 replies

smacdonald2008
New Participant
October 16, 2015

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. 

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

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

wmakendAuthor
New Participant
October 16, 2015
Thank you very much. I'll integrate the API in the instance