A better way of creating document types for a package
Hi all,
I am developing a package for Umbraco and one requirement is to create a document type used by the package.
At the moment I am creating this document type in a Startup class within the OnApplicationStarted method. This works fine but I can't help but feel its a little ugly?
I have looked into package actions but have seen recent posts suggesting those aren't compatible with Umbraco cloud.
Is creating the doc type within a startup class acceptable do you think? If not, what is the best alternative nowadays?
A better way of creating document types for a package
Hi all,
I am developing a package for Umbraco and one requirement is to create a document type used by the package.
At the moment I am creating this document type in a Startup class within the OnApplicationStarted method. This works fine but I can't help but feel its a little ugly?
I have looked into package actions but have seen recent posts suggesting those aren't compatible with Umbraco cloud.
Is creating the doc type within a startup class acceptable do you think? If not, what is the best alternative nowadays?
Repo URL: https://github.com/BarFoo/UmbracoContentFiles
Startup class: https://github.com/BarFoo/UmbracoContentFiles/blob/master/src/UmbracoContentFiles/Events/Startup.cs
Thanks in advance
For anyone else reading this, Soren discussed package actions during Umbraco UK Festival and discusses a method that is suitable for my requirement.
https://www.youtube.com/watch?v=ZotjdtAIy4E&t=13m10s
13:10 onwards.
Thanks Soren!
is working on a reply...