Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kris Dyson 54 posts 79 karma points
    Mar 10, 2010 @ 17:57
    Kris Dyson
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft