I’m trying to listen to the publish event of a page, and by looking at how a field has changed I want to programmatically alter another page.
It all works, but the issue I’m seeing is if an editor has created a working copy of the page (which happens quite easily often without you actually wanting to), when I publish and change the page. He or she could later come in and publish the working copy, removing my changes.
It seems possible to load the working copy programmatically, but can you save any changes to it somehow? (Without publishing it).
One option would be to delete their working copy, but that doesn’t seem nice,
Litium version: 6.1.2-patch-1806080803