In Tridion 2011 SP1, I am trying to implement an event that will publish items automatically when the editor clicks Save and Close (but not Save).
Under normal circumstances, this can be handled in the CheckIn event, but since this element is likely to be in the workflow, there is no CheckIn event yet.
In COM events, we had a flag (doneEditing) to tell us if the editor clicked save and close vs Save. It seems I can not find a similar option in TOM.NET events.
For reference - here is the code so far:
[TcmExtension("Publish to Wip Events")] public class PublishToWip : TcmExtension { public PublishToWip() { EventSystem.SubscribeAsync<VersionedItem, SaveEventArgs>(PublishItemToWip, EventPhases.TransactionCommitted); } private void PublishItemToWip(VersionedItem item, SaveEventArgs args, EventPhases phases) {
I looked at SaveEventArgs options, but did not find anything that would provide me with this information. Any tips?
source share