Deleted page from author | Community
Skip to main content
AEMLearner-1989
Level 4
July 28, 2017
Solved

Deleted page from author

  • July 28, 2017
  • 19 replies
  • 10796 views

Hi Friends,

Is there any possibility to deactivate the page in publisher once author delete the page in author environment.

Scenario:

Some author deleted the page directly from author without deactivating it.

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 Techaspect_Solu

Hi sathya,

I would suggest to create a content package from the author instance and replicate it from the package manager.

So the content will be in sync on both publish and author.

Thanks,

Techaspect Solutions.

19 replies

susheel
Level 5
July 28, 2017

Hi prakash,

Get a package from one of the publishers for the specific page and install it on author and deactivate

If you more publishers then the above thing will be helpful.

If not you can directly go and delete it on publish.

AEMLearner-1989
Level 4
July 28, 2017

Its really hard to find the pages which is in author not in publisher.. hence I need a suggestion to how to prevent it.

Techaspect_Solu
Techaspect_SoluAccepted solution
Level 7
July 28, 2017

Hi sathya,

I would suggest to create a content package from the author instance and replicate it from the package manager.

So the content will be in sync on both publish and author.

Thanks,

Techaspect Solutions.

AEMLearner-1989
Level 4
July 28, 2017

Yes ..you are ryt..but again its a tedious process...we are having more than 3500 pages on our website...

I need to prevent it in future..is there any possibility to deactivate the page from publisher if author delete the page in author.?? like workflow or curl command??

Diego_Fontan
Level 4
July 28, 2017

You can also double check restore certain version of the tree or folder, for more information how is it works you can check : Working with Page Versions

One more thing, if you wanna prevent deletion or another actions, you should basic adjust the acl for specific group to basic remove permission for deletion certain path, folder, page or whatever do you consider. For more information, you can check: User Administration and Security . This kinds of set up should be basic implemented at the beginning of the project.

AEMLearner-1989
Level 4
July 28, 2017

Sorry ..I think you misunderstood our question...

Here my question is if author delete the page by mistakenly in author environment without deactivate it , how to remove the same in publisher environment

Diego_Fontan
Level 4
July 28, 2017

You can resolve in different way:

1) Using workflows -  Create a custom workflow and use a launcher to trigger the workflow.(don't forget this option increase amount of thread(instance)

2) Using Sling Eventing - This is an eventing mechanism provided by sling which basically you are listing specific action and take action. I recommend this.

3) using Lower level JCR API's The same as previous.

Techaspect_Solu
Level 7
July 28, 2017

Hi sathya,

One more possibility is by checking the audit logs you will get the data of pages which are deleted.

Using that data you can delete it directly from the publish.

There are no curl commands available to delete a page.

To not to get into complex,you should not delete a page without deactivating in author from the next time.

Thanks,

Techaspect Solutions.

Singaiah_Chintalapudi
Level 7
July 28, 2017

If author deletes the page then it gets deleted from publish as well. You should not see this page in publish. Make sure your hitting the publish url not dispatcher URL.

Prince_Shivhare
Community Advisor
Community Advisor
July 29, 2017

You should restore the pages in using classic ui console.

check this: Recovering Deleted Pages - Content Management System - Simon Fraser University


and then see if it works you.