How to create a project package for Umbraco?

人盡茶涼 提交于 2019-11-29 19:46:36

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/16008641/how-to-create-a-project-package-for-umbraco

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!