Copied to clipboard

Flag this post as spam?

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


  • daniel 4 posts 34 karma points
    Jan 30, 2019 @ 21:18
    daniel
    0

    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

  • Marc Goodson 943 posts 6262 karma points MVP 4x c-trib
    Jan 30, 2019 @ 22:53
    Marc Goodson
    100

    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

  • daniel 4 posts 34 karma points
    Jan 30, 2019 @ 23:44
    daniel
    0

    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.

  • Marc Goodson 943 posts 6262 karma points MVP 4x c-trib
    Jan 31, 2019 @ 15:46
    Marc Goodson
    0

    Yes

    That and always checking for nulls :-P

Please Sign in or register to post replies

Write your reply to:

Draft