When a user saves a given doc type I want to check a property value, if it has changed from the original value I want to perform some action.
Any Ideas?
I know how to use the events, what I need help with is the syntax... heres what I mean.
void ContentService_Saving(IContentService sender, Umbraco.Core.Events.SaveEventArgs<IContent> e)
{
foreach (var myNode in e.SavedEntities.Where(x => x.HasProperty("propertyName")))
{
//if (myNode.GetPropertyValue("propertyName").hasChanged)
// then
//bla bla bla
}
}
Also is there a version of this method that is a single IContent object rather than a list, In previous versions was this not the case?