Is there a class/API available similar to SlingPostProcessor that can be used when a page is created or copy/pasted? | Community
Skip to main content
LinearGradient
Level 6
October 16, 2015
Solved

Is there a class/API available similar to SlingPostProcessor that can be used when a page is created or copy/pasted?

  • October 16, 2015
  • 1 reply
  • 646 views

Hi,

When a component is dropped onto a page, or copy/pasted, it is possible to perform some post processing using a SlingPostProcessor custom class.

However, when a page is copy/pasted in the Touch UI, as the operation is using the wcmcommand endpoint, SlingPostProcessors are not invoked.

Is there something similar to SlingPostProcessor that can be used to implement custom post-processing logic for when pages are created, deleted, copy/pasted, etc.?

Thanks.

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

There is no API that is invoked after a page is created or deleted. However - why not look at using Workflows to do post-processing and use custom Workflow steps to perform unique application logic to address your business requirements?  You can use this API to perform page operations:

http://docs.adobe.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html

Another option that you have is to look at using JCR event handlers. WHen a node is created (ie - page) - you can configure AEM to invoke a custom event handler. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

There is no API that is invoked after a page is created or deleted. However - why not look at using Workflows to do post-processing and use custom Workflow steps to perform unique application logic to address your business requirements?  You can use this API to perform page operations:

http://docs.adobe.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/PageManager.html

Another option that you have is to look at using JCR event handlers. WHen a node is created (ie - page) - you can configure AEM to invoke a custom event handler.