How to package Document Types, Custom Sections, etc in one package?
Hi,
I am in the process of developing a custom application to be hosted inside Umbraco.
How can I package all the source code, views, css, js, etc. in one package, whereby I can deploy on multiple installations of Umbraco?
Also, will it be possible to create all Document Types, Templates, properties, etc by code, so that when I deploy package, everything will be installed and ready to use?
You can create custom packages from the Umbraco Developer section. Just right click the Packages element and choose Create and follow the prompts. A package can contain everything you should need.
Yep, you can package document types - this also automatically packages the associated template. You can also package up content (nodes) too.
There is also then an option for selecting any arbitrary files or folders - and these will be added to the package, too. So you can package any files within your website (including partials etc).
You can also package the compiled .dll file for your application. This is the way I do my package releases. Alternatively, you can bundle your application code into App_Code although I would not recommend this.
How to package Document Types, Custom Sections, etc in one package?
Hi, I am in the process of developing a custom application to be hosted inside Umbraco.
How can I package all the source code, views, css, js, etc. in one package, whereby I can deploy on multiple installations of Umbraco?
Also, will it be possible to create all Document Types, Templates, properties, etc by code, so that when I deploy package, everything will be installed and ready to use?
Thanks
You can create custom packages from the Umbraco Developer section. Just right click the Packages element and choose Create and follow the prompts. A package can contain everything you should need.
See http://code-desk.com/web-development/how-to-create-local-package-in-umbraco-7.html
Thanks Dan.
Is there a way by code to create Document Types, properties, partial views and macros and then package them?
Regards Bilal
Yep, you can package document types - this also automatically packages the associated template. You can also package up content (nodes) too.
There is also then an option for selecting any arbitrary files or folders - and these will be added to the package, too. So you can package any files within your website (including partials etc).
Sorry Dan, I meant by code. For instance, I write some code using Umbraco services and create Document Types, etc.
Thanks
There is a packaging service you can access if you have an UmbracoContext. So you can access it like this:
However, I've never used it myself.
You might also want to check out Kevin Jump's uSync, which might do what you want, too:
https://our.umbraco.org/projects/developer-tools/usync/
You can also package the compiled .dll file for your application. This is the way I do my package releases. Alternatively, you can bundle your application code into App_Code although I would not recommend this.
Hi Jason, How can I connect with you by email? Thanks
is working on a reply...