Copied to clipboard

Flag this post as spam?

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


  • Kim Holzmann 17 posts 97 karma points c-trib
    Jan 21, 2015 @ 18:04
    Kim Holzmann
    0

    Creating a new package including content data

    umb 7.2.1

    Is it possible to include the content data in a new package and insert data after install of package som there is some default data to start with, or must I make a script to do the trick.

    best regards

    Kim Holzmann

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 21, 2015 @ 19:49
    Jan Skovgaard
    0

    Hi Kim

    You can package up your content etc but images from the media library picked with a picker will not be included. Not sure if images from the media section will make it into the package but they won't appear in the media section once you import your package so it's a bit hard to change them.

    But you should be able to use a package action script - RIchard Soeteman has made a package using those here http://our.umbraco.org/projects/backoffice-extensions/package-actions-contrib - Even though it's pretty old I think you can benefit from hos blogpost as well http://www.richardsoeteman.net/2009/03/03/PackageActionsContrib.aspx

    Depending on what it is you want to achieve another approach could be to setup a base installation with your default document types, templates, media, macros, datatype configurations, content setup etc. and keep it in source control system like git or mercurial. That way you can add/remove features and keep a base in one place. You can even version control the database if you keep the base running CE SQL even though it can sometimes be acting up a bit since it's not able to merge if more people have added changes and pushed to the central repository. But then it's just a matter of having a base MSSQL instance so those conflicts can be avoided. But the benefit of having CE SQL in source control is that it's easy to rollback changes...but if you rely on a certain 3rd party package that only support full MSSQL then it does not make sense of course. But CE SQL is easy to migrate to MSSQL using Webmatrix for instance. SO perhaps this approach is worth considering in your case?

    /Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 21, 2015 @ 20:04
    Jan Skovgaard
    0

    Hi again Kim

    In regards to including images using package actions you should be able to find more information about it in this post where Sören asked about it http://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/60616-How-add-media-types-to-package?p=0#comment205583

    /Jan

  • Kim Holzmann 17 posts 97 karma points c-trib
    Jan 21, 2015 @ 20:10
    Kim Holzmann
    0

    Hi Jan 
    Thanks for the quick reply, it seems like im lucky then :-)
    perfect description, there is many ways to go so I will continue right away 

    Best regards 

    Kim Holzmann

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 21, 2015 @ 20:16
    Jan Skovgaard
    0

    Hi Kim

    Glad you can use it - please don't hesitate to ask further questions if you have doubts about anything :)

    /Jan

  • Kim Holzmann 17 posts 97 karma points c-trib
    Jan 29, 2015 @ 08:40
    Kim Holzmann
    0

    Hi Jan 

    just a quick reply - every thing went out perfect :-)
    thx 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 29, 2015 @ 17:53
    Jan Skovgaard
    100

    Hi Kim

    Happy to hear it worked - Remember to mark the topic as solved so others can go straight to the solution :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft