📜 ⬆️ ⬇️

How to create your website from scratch using Orchard CMS. Part 1. Introduction to Orchard CMS

about the project


The Orchard CMS project was announced in March 2010 with the release of the first beta version of the project. The creators of Orchard CMS set a goal to build a content management system on the new successful ASP.NET MVC framework that would meet the following requirements:Orchard Content Management System is an open source project written in ASP.NET MVC. Orchard is part of an open source non-profit foundation Outercurve Foundation's ASP.NET project gallery .

clip_image002

Fig.1.1. The default appearance of the Orchard CMS
')
Initially, Orchard and its source codes were licensed on the basis of a free license MS-PL, but recently, with the release of the first public version, the project changed the license to a simpler and more common New BSD License .

Four preliminary versions were released during the year, until Orchard CMS reached version 1.0. All this time, the developers kept in touch with the community, accepting suggestions, taking into account comments and correcting errors found. To publish the source code and collect user feedback, the project was launched on the open source project codeplex.com portal at http://orchard.codeplex.com/ .

Today at http://orchard.codeplex.com/ you can find extensive documentation on all aspects of using Orchard CMS, you can participate in the discussion of the project in forums, you can send a report about the error found on the bugtracker, you can download the latest project source codes and binary builds.

In addition to the developer page http://orchard.codeplex.com/ , the official project site was launched at http://www.orchardproject.net/ , which today contains all the supporting documentation necessary for working with Orchard CMS. In addition, the official website contains a gallery of modules and other components created by the community to expand the functionality of Orchard CMS.

Since Orchard CMS is an open source project that is free for the community, developers can send their fixes and deliver their source code to the project through the Mercurial distributed source control tool, which integrates the http://orchard.codeplex.com/ page.

The first stable version of Orchard CMS 1.0 was released in January 2011, and this event greatly influenced the further growth of the project. Dozens of discussions appeared in the project forums, a lot of new participants joined the community, the gallery of extensions and modules began to grow rapidly.

A version of Orchard CMS 1.1 is being prepared for an early exit, which will bring new interesting features to the project, for example, support for the so-called “Recipes” (Recipes) that will automate the deployment of Orchard CMS with certain sets of functions. A full roadmap with a list of already implemented functions and functions that are currently being worked on can be found at http://www.orchardproject.net/docs/feature-roadmap.ashx .

Download Orchard CMS


There are several possibilities to download Orchard CMS to the workplace to create new web applications. Among them:The option of manually loading and setting seems routine. Why do something for a long time with your hands, if the process can be automated and spend time working with the CMS, and not to download and install it.

clip_image004

Fig. 1.2. Downloading source codes and binary builds of Orchard CMS from the official site

The option to download via the Web Platform Installer greatly simplifies setting up a CMS at the workplace, offering automatic project download, all necessary dependencies, and configuration of the CMS on the IIS server. This option is considered in this article on Habrahabr, which is somewhat outdated, but gives a general idea. Downloading Orchard CMS using WebPI is a great opportunity to quickly and automatically launch a CMS on a local computer or server.

clip_image006

Fig. 1.3. The Web Platform Installer and Orchard CMS window in the list of web applications and tools

However, the best way to download, work, deploy, and follow-up projects based on Orchard CMS is to work through the new WebMatrix development tool.

clip_image008

Fig. 1.4. Download Orchard CMS from WebMatrix template gallery

In this tutorial, WebMatrix will be our main tool for building applications based on Orchard CMS.

WebMatrix - a tool for developing and maintaining web projects


WebMatrix is ​​a free, lightweight tool for developing, deploying and maintaining web applications. The WebMatrix installation package takes only 8 megabytes and is installed in a few seconds. WebMatrix is ​​built to work with the latest Microsoft technologies: IIS Express 7.5, SQL Server Compact 4.0 compact database and Web Deploy 2.0 automatic deployment tool.

clip_image010

Fig. 1.5. WebMatrix 1.0 start window

WebMatrix offers the following features for web developers:clip_image012

Fig. 1.6. Working with code in WebMatrix

An important feature of WebMatrix is ​​not only the ability to create web applications, but also accompany them throughout the entire life cycle. Thus, WebMatrix will be useful to you not only at the stage from design to development of a web application, but also later, when your application will work as a real project.

clip_image014

Fig. 1.7. Work with databases in WebMatrix

WebMatrix, as well as other important development tools designed for web developers, is available for automatic download via the automatic installer of the Web Platform Installer web platform. How to download and work with the Web Platform Installer you can learn from this article on Habrahabr .

clip_image016

Fig. 1.8. Project analysis and work with reports in WebMatrix

A large amount of information on WebMatrix can be found on the official websites http://www.microsoft.com/web/webmatrix/ and http://www.asp.net/WebMatrix .

Work with Orchard CMS through WebMatrix


In the first part of our guide to developing web applications based on Orchard CMS, we will learn about downloading, launching, configuring and publishing our first application. At each stage, our work will be facilitated and automated by WebMatrix.

Download Orchard CMS

Orchard CMS based project is very easy to upload to WebMatrix. Simply launch the development environment and in the start window (Figure 1.5) select the Site From Web Gallery item.

In the appeared window with the list of web application templates available in the remote storage, find the Orchard CMS (Figure 1.4). For a quick search, select the CMS section.

Enter the site name and click OK. WebMatrix prompts you to familiarize yourself with the license of the downloadable template and notify you of the size of the data you need to download from the storage (Figure 1.9).

clip_image018

Fig. 1.9. Download project Orchard CMS through WebMatrix

Click the I Accept button (I agree) to agree with the license and to continue downloading the Orchard CMS template. A few seconds later, after downloading the template from the remote storage and its automatic installation in the workplace, you will receive a notification of successful completion. If you want, review the installation process log and click OK to go to the downloaded template in the WebMatrix environment (Figure 1.10).

clip_image020

Fig. 1.10. WebMatrix main window with Orchard CMS template loaded

As you can see, WebMatrix helped automatically download and install the Orchard CMS template in a few seconds, greatly saving us time on routine operations.

Launch Orchard CMS

The beauty of working with WebMatrix is ​​that after a quick download and automatic installation of the web application template, you need to press just one Run button to start your application ready and configured (Figure 1.11).

clip_image022

Fig. 1.11. The first launch of the project based on Orchard CMS

After a short initial compilation, the project will be launched in the browser and you will be able to perform its initial configuration. In the Orchard CMS start window, you can specify the following parameters:In case you select SQL Server (Express) as the server, you will need to enter the connection string to the existing server.

SQL Server Compact is great for storing data, this database is easy to manage and Orchard CMS fully supports working with the structure of this database. Therefore, in the course of our guide, we will use SQL Server Compact as a means of storing data for our applications.

Choose the first item Use built -in data storage and click Finish Setup to complete the initial setup. The site will be configured in a few seconds.

clip_image023

Fig. 1.12. Orchard CMS primary configuration indicator

Immediately after the configuration, you will be presented with your first website on the Orchard CMS with a sample template ready for customization, editing and content filling (Figure 1.13).

clip_image025

Fig. 1.13. The first site on Orchard CMS

As you can see, since the launch of WebMatrix and until the finished website based on the Orchard CMS was uploaded, a few minutes passed in the browser. Saving your time is one of the important properties of WebMatrix.

Read the rest of the article ...

Source: https://habr.com/ru/post/115953/


All Articles