Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Live Copy through CQ API

Avatar

Level 2

Hi

We have a requirement to create a live copy of the page as soon as a new page is created in source location i.e. if a page is created at "/content/site1/en/page1", then a live copy should be created at "/content/site2/en/page1". To achieve this, we plan to do following:

1) create a workflow with Process Step having code to live copy at target page

2) associate the workflow with workflow launcher for create action

 

However, for #1, I dont see any API to create a live copy through CQ Java API. I am able to achieve a normal copy through aforesaid approach as copy method exists in PageManager. Can you help me point out the right API in CQ to create a live copy? I am using CQ 5.5.

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 5

Why you are not using roll out config feature of live copy to do this ?

Some help URL

1) http://dev.day.com/docs/en/cq/5-5/developing/multi_site_manager_dev.html (API)

2) http://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html (Through OOTB rollout config)

Yogesh

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Why you are not using roll out config feature of live copy to do this ?

Some help URL

1) http://dev.day.com/docs/en/cq/5-5/developing/multi_site_manager_dev.html (API)

2) http://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html (Through OOTB rollout config)

Yogesh