Join Discord
Powered by
I work on a package that will install/update docum...
# package-development
n
Niels
06/28/2023, 10:55 AM
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
Kevin Jump
06/28/2023, 11:05 AM
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
Niels
06/28/2023, 11:06 AM
Thanks. I want to have it 100% in git so I will look at both solutions 🙂
k
Kevin Jump
06/28/2023, 11:16 AM
yes - the embedded thing would end up in git, its just a bit of pain to generate.
Kevin Jump
06/28/2023, 11:16 AM
I mean uSync will do it 🙂 but not ideal if you are going to publish the package.
Previous
Next