Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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?
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
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
Glad you can use it - please don't hesitate to ask further questions if you have doubts about anything :)
just a quick reply - every thing went out perfect :-)thx
Happy to hear it worked - Remember to mark the topic as solved so others can go straight to the solution :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted