Copied to clipboard

Flag this post as spam?

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


  • Sébastien Richer 194 posts 429 karma points
    Jan 07, 2013 @ 20:23
    Sébastien Richer
    0

    Uninstalling my package, problem removing hierarchised document types

    Hello,

    I have these hierarchised document typesthat I install in my package, but when I try to uninstall, I get an error message: "Can't delete a Document Type used as a Master Content Type. Please remove all references first!"

    How can I tell my package to uninstall the document types in the "child first" order? Or maybe there is another way to go about this.

    Thanks!

    Seb

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 07, 2013 @ 20:29
    Dirk De Grave
    0

    unfortunately, you can't tell your package to uninstall in a specified order i'm afraid. Only thing you could do is create your own "uninstall" task to run on uninstall of the package. But honestly, sounds more as a core code issue which you should log here. Provide as much info as possible

     

    Cheers,

    /Dirk

  • Sébastien Richer 194 posts 429 karma points
    Jan 07, 2013 @ 20:29
    Sébastien Richer
    0

    In my package, I see this line and if I simply "reverse" it, my package uninstalls correctly : 

    <documenttypes>1076,1077,1078,1079,1080,1081,1082,1083</documenttypes>

    Which make sense...

  • Sébastien Richer 194 posts 429 karma points
    Jan 07, 2013 @ 20:31
    Sébastien Richer
    0

    Hi Dirk,

    This feels weird though, basically means that all the packages available either don'T use hierarchised document types or manage it manually. I guess I can delete the document types by code, I have code already running on uninstall, but it does seem odd...

    Thanks!

  • Sébastien Richer 194 posts 429 karma points
    Jan 07, 2013 @ 20:47
    Sébastien Richer
    0

    Hi again Dirk,

    I found this issue : http://issues.umbraco.org/issue/U4-1351 Upvoted and commented hehe :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies