Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Create Copy automatically on Source Page Activation

Avatar

Level 4

Hello Everyone,

I am interested in doing a rollout on activation of the source page and this should be done automatically. 

I tried creating a rollout configuration which has a trigger "on active" and added  edit properties as well to replace for page title and name. 

 I placed this rollout configuration as a property in "cq:LiveSyncConfig" node placed just below the content resource of Source Page.

But when I activate my source page nothing happens. Not sure whether what I have done is proper 

Can someone help me on this please.

Regards,

Krishna

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Krishna,

I believe this can be done programmatically using Event Listener. On Page Activation, inside the handler, the rollout can be processed using the following API -

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/msm/api/RolloutManager.html

Let me know in case you need further help on this.

Thanks

Vatsal

View solution in original post

3 Replies

Avatar

Level 10

"I am interested in doing a rollout on activation of the source page and this should be done automatically"

If you want to activate pages automatically- build a workflow that publishes the page(s). Then build an AEM scheduler service and invoke the workflow programmatically. You can automatically publish pages that way. 

Avatar

Level 10

Out of the box title is excluded, configure the CQ MSM Content Update Action .  Steps are [1].  If still does not work file an official support request. 

[1]   https://docs.adobe.com/docs/en/cq/5-6-1/administering/multi_site_manager.html#Creating%20a%20Rollout...

Avatar

Correct answer by
Level 3

Hi Krishna,

I believe this can be done programmatically using Event Listener. On Page Activation, inside the handler, the rollout can be processed using the following API -

https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/msm/api/RolloutManager.html

Let me know in case you need further help on this.

Thanks

Vatsal