Hey there,
I'm trying to write a plugin that listens for the OnDocUnPublished event for a resource *outside of the context menu.
When a resource has reached it's unpublished date/time I want
the system to move that resource to become a child of another resource i.e. Once a resource has been unpublished, remove the child from 'active articles' and make the parent the 'archive' resource.
After consulting the docs however it seems the 'OnDocUnPublished' event only gets fired when triggered through the context menu:
Called when a Resource is unpublished via the Unpublish context menu.
Is there a system event that I can listen out for that will help me accomplish this?
Quite new to MODx, so forgive me if it's clearly in the docs - I have looked to no avail.
Many thanks