Reinstalling the content package and the page status | Community
Skip to main content
Level 2
February 19, 2018
Solved

Reinstalling the content package and the page status

  • February 19, 2018
  • 5 replies
  • 3517 views

Hi All,

Am running AEM 6.1 SP2 CFP11.

I would like to clarify a scenario and the expected AEM behaviour in a situtation. Below is the scenario:

Steps:

I created a new page named TestPage.(neither activated nor deactivated)

I created a package TestPackage and filtered the TestPage alone and made a build.

Now i activated the TestPage and it is available in Publisher.

Then i installed the TestPackage.

Results:

In Author the page shows as neither activated nor de-activated -> shows grey.

In Publisher the page is still active.

Can someone advise me on how we can sync the status of pages between author and publisher in this case?

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 Julio_Tobar

@Arun_007, when you install your TestPackage you're basically overwriting all you did since the package was built, basically the replication properties added to the page node when replication was executed. I see three options for synchronizing your Author content with you publisher in the scenario you described:

option 1: Custom  Reverse  Replication Agent to collect and retrieve "Replication" properties from Publish into Author

option 2: Use Adobe Consulting Services JCR Compare tool (JCR Compare ) to find out difference among both AEM instances

option 3: develop custom API to traverse all pages and reverse replicate replication properties

5 replies

Ravi_Pampana
Community Advisor
Community Advisor
February 19, 2018

Once the page is activated, page will be pushed to publish instance(s). In your case, deactivate the page before reinstalling the content package.

Deactivating a page will remove from publish instance(s).

Hope this helps !

Arun_007Author
Level 2
February 19, 2018

Imagine if in case multiple pages(100) are affected. We cannot go and deactivate each and every page.

Ravi_Pampana
Community Advisor
Community Advisor
February 19, 2018

I have explained you what will happen when you activate a page and reinstall the old content in author.

It will also be difficult to create content package manually for 100 pages.

What is your use case of activating 100+ pages and reinstalling the old content package which are not activated ?

You have to write a service to deactivate the pages programmatically by passing the pages list in excel/text file if the number of pages are more.

Also, programmatically you can create package with the list of url's.

Julio_Tobar
Julio_TobarAccepted solution
Level 3
February 20, 2018

@Arun_007, when you install your TestPackage you're basically overwriting all you did since the package was built, basically the replication properties added to the page node when replication was executed. I see three options for synchronizing your Author content with you publisher in the scenario you described:

option 1: Custom  Reverse  Replication Agent to collect and retrieve "Replication" properties from Publish into Author

option 2: Use Adobe Consulting Services JCR Compare tool (JCR Compare ) to find out difference among both AEM instances

option 3: develop custom API to traverse all pages and reverse replicate replication properties

Arun_007Author
Level 2
February 21, 2018

Thanks for framing the answer perfectly.