Pages published from another market | Community
Skip to main content
Level 3
February 1, 2022

Pages published from another market

  • February 1, 2022
  • 2 replies
  • 1902 views

Hi,

I'm working on a multi site project (i.e., mysite), which has sites launched in different countries and languages. Let's say we have an existing site in country A and want to create a new one for country B. The country B content team copied content nodes from content/mysite/A/en/ and added them to content/mysite/B/en/  -The site B content structure.

The problem: When site B author clicks publish on one of the site B  pages, it is causing publish on the original site A pages.

Any idea on what could be causing this? Is there an AEM feature that needs to be turned off or it could be custom workflow or any other reasons?

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.

2 replies

Anish-Sinha
Adobe Employee
Adobe Employee
February 1, 2022

Hi @aembee,
For creating a new site, you should not use copy paste. The reason being, copy paste would carry all the references as well in the new path with old site links. This is the reason, when you are activating new path, links in old is also getting activated. The best way to do is to create a live copy, and then break the inheritance, so that content authors will modify their content in new website and the reference will be updated as per the new website. You can review here how to create live copies: https://experienceleague.adobe.com/docs/experience-manager-screens/user-guide/authoring/product-features/managing-livecopy.html?lang=en

 

aembeeAuthor
Level 3
February 1, 2022

Thanks @anish-sinha for the reply. If I cannot update the pages now (because it's not created by me), Is there any way I can break the inheritance?

Anish-Sinha
Adobe Employee
Adobe Employee
February 1, 2022

With copy paste, you cannot update the reference using any ootb feature. You will have to write a custom script/service in order to search and update the links in the new structure.

Anmol_Bhardwaj
Community Advisor
Community Advisor
February 2, 2022

Ideally, we should not copy/paste, but move it through sites console, so the references gets migrated as well.

 

But, if it is already done as you said, I would do the following:

 

- Look for a pattern which is similar in both A & B. (Ex: /content/prject-name/A/ & /content/new-project/B )

- If you can find a pattern like that in A & B, you can write a custom groovy script.

- Write a query to get all the B nodes.

- Change all the A references to B (through the patter we just found out).

- Save the session. 

 

If you don't find a single pattern, then you may need to break down into smaller patterns and then do the same thing.

 

This should move the references as well.

If you need to keep some references AS-IS, then you can exclude them when writing query for it.

aembeeAuthor
Level 3
February 2, 2022

Thanks @anmol_bhardwaj I'm trying to find the references