Copied to clipboard

Flag this post as spam?

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


  • David Parr 48 posts 206 karma points
    Jun 17, 2017 @ 18:06
    David Parr
    0

    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

  • David Parr 48 posts 206 karma points
    Jun 23, 2017 @ 10:56
    David Parr
    1

    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!

  • 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