API for Overriding the page | Community
Skip to main content
New Participant
October 28, 2015
Solved

API for Overriding the page

  • October 28, 2015
  • 3 replies
  • 2165 views

Hi All,

I have a doubt in overriding the page during copying page from source to destination.

Suppose TShirt page exists in source and destination area. 

My TShirt  page structure in crxde as follows

TShirt

TShirt —> jcr:content 

TShirt —> jcr:content  —> header

TShirt —> jcr:content  —>  par

TShirt —> jcr:content  —>  par —> image

TShirt —> jcr:content  —>  par —> link

I have modified some content(added some component. Hence contents under par node are changed) in the page at source area…

While copying the page from source to destination, the revision should be created and page content should be updated in destination.

Is there any API available for overriding the page(content should be modified) or we need to change each node manually ?

Please note that version history should be maintained after overriding the page. Thanks in advance !!!!!!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PaulMcMahon

I am not sure I fully understand you use case, but it sounds to my like what you are describing is something that falls under the Multi-Site Manager functionality. 

In you use case you have the same page in two locations, and one is the master and the other is a copy of the master and  you want to be able to keep the copy in sync with the master? If so you wouldn't do a traditional copy you would be looking using the Live Copy functionality in Multi-Site Manager and then do a rollout. See https://docs.adobe.com/docs/en/aem/6-1/administer/sites/msm.html for details. This is really an API so much as a feature of the product. Multi-Site manager rollouts provide the ability to modify the content during a rollout (changing the template for example). Not sure if this is what you are looking for or not.

3 replies

Lokesh_Shivalingaiah
New Participant
October 29, 2015

As @orotas mentioned, it would be a case of livecopy. However can you explain your usecase of overriding a page !

PaulMcMahonAccepted solution
New Participant
October 28, 2015

I am not sure I fully understand you use case, but it sounds to my like what you are describing is something that falls under the Multi-Site Manager functionality. 

In you use case you have the same page in two locations, and one is the master and the other is a copy of the master and  you want to be able to keep the copy in sync with the master? If so you wouldn't do a traditional copy you would be looking using the Live Copy functionality in Multi-Site Manager and then do a rollout. See https://docs.adobe.com/docs/en/aem/6-1/administer/sites/msm.html for details. This is really an API so much as a feature of the product. Multi-Site manager rollouts provide the ability to modify the content during a rollout (changing the template for example). Not sure if this is what you are looking for or not.