Highlighted

How to distinguish creation or copy of a page??

anshumank367659

29-03-2018

I am using event handler to detect page creation. But i have to now distinguish the page creation between the "create" option and "copy" of a page. In both the cases the modification type is "pageCreated", so how to differentiate the two.

Many Thanks for any solutions and guidance.

Replies

Highlighted

radhabbharathi

29-03-2018

Hi , I doubt its possible. As in AEM,page creation and page copy are considered  the same .Even in var/audit the cq:type value PageCreated for both create and copy action.

Highlighted

dylanr72808383

29-03-2018

When looking at page events, you won't be able to tell if it is copied or created. What you might be able to do is check the content on the page. If it has certain criteria, like it has X components inside the parsys that are not standard on the template, or if X components are configured, you can tell that the page is a copy of another page.