Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a project package for Umbraco?

I need to create a project for umbraco. I Don't know where to start and where to see about this. I googled and found nothing helpful instead I got confused what is umbraco project. To create a umbraco project whether I need to create web applications or class library in visual studio.

I know these are basic but I'm confused in that only. would somebody help me to create the project for umbraco CMS.

like image 624
Gopinath Perumal Avatar asked Apr 15 '13 06:04

Gopinath Perumal


People also ask

How do I create a Umbraco package?

The first step when trying to create a package would be to have an Umbraco site to add something to. So let's set up a site using the Package Templates tool. It will show you all the options you have for creating a new Umbraco site + package. For now, you should navigate to the folder you want to add this package in and use this command:

Does Umbraco 9 support NuGet installs?

Given the issues described above, Umbraco 9 and onwards will only support NuGet installs for packages. And what does this mean in practice? The “Packages'' section in the backoffice will remain, but you won’t be able to install packages directly from here.

What is the point of this Umbraco V8 content app?

The point of this is not to create yet another content app, it is to share the repeatable steps for building packages for Umbraco v8 so you can have the confidence and structure in place to be able to start creating packages for your own ideas, which other people can contribute to and you can maintain easily enough.

What are the downsides of using Umbraco?

One downside of this approach is the inclusion of Umbraco content and schema as part of an Umbraco package. One approach to handling this is to use an Umbraco migration, and the Umbraco APIs, to create the necessary document types, data types and content that the package requires.


1 Answers

If I understand you correctly, you are looking for resources on how to create an Umbraco Package.

Once you have come up with a way to extend the functionality of Umbraco (ie: a new data type, a new section, some event handlers that are fired on publish, etc), you'll want to find a way to package that up and redistribute it, possibly even on Our Umbraco. There are a couple ways to go about doing this:

  1. The Umbraco backoffice comes with a way to package up document types, data types, templates, assemblies, etc.:

    1. In the Developer section, expand Packages.
    2. Right-click Created packages, and choose Create.
    3. Fill in package details, select content and files, write package actions, etc.
  2. Create packages within Visual Studio using MSBuild. This is a more advanced (and therefore complicated) approach. I've found it helpful to look at the source code of some of the popular packages out there, such as uComponents, to get a good understanding on how this is done.

The package file is simply a zip file that contains xml with instructions for Umbraco on what to do when it is installed.

like image 92
Douglas Ludlow Avatar answered Sep 20 '22 19:09

Douglas Ludlow