Expand my Community achievements bar.

SOLVED

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

Avatar

Level 7

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.