How to get Url links from master copy to live copy | Community
Skip to main content
Level 3
May 8, 2022
Solved

How to get Url links from master copy to live copy

  • May 8, 2022
  • 2 replies
  • 871 views

Hi All,

 

I created a live copy from the master copy,

Master : /content/-----/language-masters/en_us

livecopy : /content/----/us/en within this folder created live copy name of global-homepage.

Ex: When we have a link /content/-----/language-masters/en_us its automatically  updating  where we have a name in link language-masters to global-homepage

 How to get whatever I have links master need to get the same links in the live copy also.

@arunpatidar   @debal_das  @anish-sinha @ravi_pampana 

 

Thanks

Kotireddy

 

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 Ravi_Pampana

Hi,

 

Live copy will have reference update Action which will update the references, we can create custom rollout and remove referenceUpdate action if we don't want the links to be updated in the live copy page.

 

Refer: https://experienceleague.adobe.com/docs/experience-manager-65/administering/introduction/msm-sync.html?lang=en

2 replies

DEBAL_DAS
New Member
May 8, 2022

We can achieve this using custom Link Transformer to rewrite global-homepage links to language-masters equivalent links.

 

Steps are given below -

1. Create a Transformer Factory.

2. Create the Transformer class -

     

  • In the init method, get the current resource or page.
  • Check if the current page is a live copy or part of the live copy site.
  • If the current page is live copy, get the blueprint path (“/content/path/to/master-site”) and get the live copy path (“/content/path/to/livecopy-site”).
  • In the “startElement” method of the transformer, get the anchor link and replace the “/content/path/to/livecopy-site” [global-homepage]  with “/content/path/to/master-site” [language-masters].

I feel following article will help you : https://medium.com/adobetech/msm-live-copy-rewrite-reference-links-inside-experience-fragments-or-template-structure-content-ade35f4e93c6

 

Please check this.

   

Debal Das, Senior AEM Consultant
Ravi_Pampana
Community Advisor
Ravi_PampanaCommunity AdvisorAccepted solution
Community Advisor
May 8, 2022

Hi,

 

Live copy will have reference update Action which will update the references, we can create custom rollout and remove referenceUpdate action if we don't want the links to be updated in the live copy page.

 

Refer: https://experienceleague.adobe.com/docs/experience-manager-65/administering/introduction/msm-sync.html?lang=en