Copied to clipboard

Flag this post as spam?

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


  • Didier Marin 18 posts 90 karma points
    Feb 27, 2023 @ 07:51
    Didier Marin
    0

    Automatic action when installing nuget package

    Hi, I've created a nuget package, and I want to have an action executed automatically on the install of the package (for the moment, there is a button on a dashboard to do it) The action is the automatic creation of document types. Is there a way to do that ? Regards

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Feb 27, 2023 @ 08:12
    Huw Reddick
    0

    You can create a migration to do it, see here https://cornehoskam.com/posts/how-to-create-run-migrations-umbraco-v10

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 27, 2023 @ 08:13
    Dave Woestenborghs
    1

    Hi Didier,

    If this is a package for V9 or up you can use package migrations : https://docs.umbraco.com/umbraco-cms/extending/packages/creating-a-package#package-migration

    Dave

  • Didier Marin 18 posts 90 karma points
    Feb 27, 2023 @ 08:50
    Didier Marin
    0

    thanks. I'll have a look

  • 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