How to avoid the problem that deletes an image that is tied to a content and is a mandatory field of the document type is eliminated and in the content the image is as trashed.
As valid that the image always exists and is not as deleted.
this will add additional functionality to Umbraco, that should give you a warning if you try to delete things, when they are used in other parts of Umbraco.
Exactly that is what I would like to prevent from happening.
It would be excellent if umbraco implemented this functionality as something native.
Although it seems the best thing is always to verify that the image is not null to avoid problems of type "Object reference not set to an instance of an object."
I appreciate your response and I will take a look at the recommended package.
Image deleted in media tied to content
Hello community
How to avoid the problem that deletes an image that is tied to a content and is a mandatory field of the document type is eliminated and in the content the image is as trashed.
As valid that the image always exists and is not as deleted.
Thanks
Hi Daniel
Have a look at this packaged called 'nexu'
https://our.umbraco.com/packages/backoffice-extensions/nexu/
this will add additional functionality to Umbraco, that should give you a warning if you try to delete things, when they are used in other parts of Umbraco.
I think that is the problem you are describing?
It's a good package to look at anyway :-)
regards
Marc
Hi Marc.
Exactly that is what I would like to prevent from happening.
It would be excellent if umbraco implemented this functionality as something native.
Although it seems the best thing is always to verify that the image is not null to avoid problems of type "Object reference not set to an instance of an object."
I appreciate your response and I will take a look at the recommended package.
regards
Daniel B.
Yes
That and always checking for nulls :-P
is working on a reply...