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.
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
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...
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
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
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...
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!
Hi again Dirk,
I found this issue : http://issues.umbraco.org/issue/U4-1351 Upvoted and commented hehe :D
is working on a reply...