Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to distinguish creation or copy of a page??

Avatar

Avatar
Validate 1
Level 2
anshumank367659
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
anshumank367659
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
anshumank367659
Level 2

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

Avatar

Avatar
Affirm 1
Level 1
radhabbharathi
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
radhabbharathi
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
radhabbharathi
Level 1

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.

Avatar

Avatar
Validate 1
Level 2
dylanr72808383
Level 2

Likes

3 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
dylanr72808383
Level 2

Likes

3 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
dylanr72808383
Level 2

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.