Hi there, I have created my own Media Type and created a field with the alias 'guid'.
I have also intercepted the Media_BeforeSave event in AppBase. In the code I'm creating a new guid and assigning it to the guid field. However, when the Media Type is re-displayed on screen, (having clicked save and triggered Media_BeforeSave), the Guid field in the Umbraco GUI is not populated with the latest value assigned by the code.
If I reload the Media Type, then all is well, because it's re-retrieving from storage.
So is there a way to persist data with a media type which the user/content editor does not have access to? Or is there a way to force umbraco to reload the Media Type after save?
The problem is that if someone clicks save twice, then we lose data...
Hide media type alias - or force reload
Hi there, I have created my own Media Type and created a field with the alias 'guid'.
I have also intercepted the Media_BeforeSave event in AppBase. In the code I'm creating a new guid and assigning it to the guid field. However, when the Media Type is re-displayed on screen, (having clicked save and triggered Media_BeforeSave), the Guid field in the Umbraco GUI is not populated with the latest value assigned by the code.
If I reload the Media Type, then all is well, because it's re-retrieving from storage.
So is there a way to persist data with a media type which the user/content editor does not have access to? Or is there a way to force umbraco to reload the Media Type after save?
The problem is that if someone clicks save twice, then we lose data...
thanks for your help
Kris
is working on a reply...