November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
No, it is not as easy as with the DataFactory.Instance.SavedPage event.
The only way to capture changes to dynamic properties (without creating your own property control type of course) is to hook:
PageDB.BeforeSavingProperty += PageDBBeforeSavingProperty;
private static void PageDB_BeforeSavingProperty(object sender, PropertyEventArgs e)
{
if (e.Property.IsDynamicProperty && e.Property.IsModified)
{
// This is executed when a dynamic property is modified but BEFORE it is saved to the database
// e.CurrentPage can be used to discover the page being modified.
}
}
Rember that this is executed in the data layer once for each property when you are saving. There is no way to cancel but you can change the value or record that a dynamic property is changed on a page.
/Fredrik
Thank you for the quick reply.
So if I want to be able to cancel changes in dynamic properties as is possible for page properties in SavingPage or GlobalPageValidators I will need to build a custom property?