Hi,
I am trying to deactivate a page by the code replicator.replicate(currentSession, ReplicationActionType.DEACTIVATE , pathToDeactivate);.
This is deactivating the page in author instance. Also, it invalidates the content in publish but the node doesn't go away from the instance. It is still seen, but, clicking on it takes to 404. I have tried various methods and yet this issue exists. Please let me know if I am missing anything here to delete the node from publ on deactivating.
Solved! Go to Solution.
Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.
Verify the publish instance log file.
Views
Replies
Total Likes
Can you try using EventHandler. which will trigger upon deactivating page or changing property of node.
Thanks for the reply. The property 'cq:lastReplicatedAction','cq:lastModified' etc get changed. The issue is the page is not getting removed from the publish instance.
I will look into eventhandler as well.
Views
Replies
Total Likes