I work on a package that will install/update docum...
# package-development
n
I work on a package that will install/update documenttypes and I was trying using IPackageAction but it looks like it dont exist in Umb12?
k
Yeah bit more complicatd now : - you can generate an xml file of documenttypes from the backoffice - then you embedd that file in the package - then you can import via an embedded resource. https://docs.umbraco.com/umbraco-cms/extending/packages/creating-a-package#custom-package-migration or if its only one or two, you can handcrank the creation with the
IContentType
service
n
Thanks. I want to have it 100% in git so I will look at both solutions 🙂
k
yes - the embedded thing would end up in git, its just a bit of pain to generate.
I mean uSync will do it 🙂 but not ideal if you are going to publish the package.