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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

API for Overriding the page

Avatar

Level 4

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 !!!!!!!

1 Accepted Solution

Avatar

Correct answer by
Level 8

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.

View solution in original post

0 Replies

Avatar

Correct answer by
Level 8

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.

Avatar

Community Advisor

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