Expand my Community achievements bar.

SOLVED

How to get Url links from master copy to live copy

Avatar

Level 3

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.

Screenshot 2022-05-07 at 10.33.46 PM.png

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

Screenshot 2022-05-07 at 10.36.16 PM.png

 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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.ht...

View solution in original post

2 Replies

Avatar

Employee Advisor

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-te...

 

Please check this.

   

Avatar

Correct answer by
Community Advisor

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.ht...