Skip to content

Orchard 1.6

建立:1.6

Published: 10/27/2012

发布时间:10/27/2012

How to Install Orchard

如何安装Orchard


To install Orchard using Web PI, follow these instructions:

要使用Web PI安装Orchard,请按照以下说明操作:

http://docs.orchardproject.net/Documentation/Installing-Orchard.

http://docs.orchardproject.net/Documentation/Installing-Orchard

Web PI will detect your hardware environment and install the application.

Web PI将检测您的硬件环境并安装该应用程序。

Alternatively, to install the release manually, download the Orchard.Web.1.6.zip file.

或者,要手动安装发行版,请下载Orchard.Web.1.6.zip文件。

http://docs.orchardproject.net/Documentation/Manually-installing-Orchard-zip-file

http://docs.orchardproject.net/Documentation/Manually-installing-Orchard-zip-file

The zip contents are pre-built and ready-to-run. Simply extract the contents of the Orchard

zip内容是预先构建的并且可以立即运行。只需提取果园的内容即可

folder from the zip contents to an IIS virtual directory (or site root) and then point your

从zip内容到IIS虚拟目录(或站点根目录)的文件夹,然后指向您的

browser to the site. You can also just extract to a local folder and open the Orchard

浏览器到网站。您也可以只提取到本地文件夹并打开Orchard

folder in Visual Studio or WebMatrix as a web site.

Visual Studio中的文件夹或WebMatrix中的文件夹。

Please make sure you have a machine key

请确保您有机器钥匙

http://docs.orchardproject.net/Documentation/Setting-up-a-machine-key

http://docs.orchardproject.net/Documentation/Setting-up-a-machine-key

or you may experience frequent disconnections.

或者您可能会经常断开连接。

What file to download?

要下载什么文件?


If you just want to use Orchard and don't care about the source code, Orchard.Web.1.6.zip

如果你只想使用Orchard而不关心源代码,Orchard.Web.1.6.zip

is what you want to use, preferably through the WebPI instructions.

是你想要使用的,最好是通过WebPI指令。

If you want to take a look at the source code, Orchard.Source.1.6.zip is fine.

如果你想看一下源代码,Orchard.Source.1.6.zip就可以了。

If you want to setup a development environment for patch or module development,

如果要为修补程序或模块开发设置开发环境,

you should clone the repository by following the instructions here:

您应该按照此处的说明克隆存储库:

http://docs.orchardproject.net/Documentation/Setting-up-a-source-enlistment

http://docs.orchardproject.net/Documentation/Setting-up-a-source-enlistment

Do not attempt to build the WebPI version in VS. Use the full source if you want to use VS.

不要尝试在VS中构建WebPI版本。如果要使用VS,请使用完整源代码。

Branches are described here: http://docs.orchardproject.net/Documentation/Developer-FAQ#Whatarethedefaultanddevbranches?WhichoneshouldIbeusing?

分支在这里描述:http://docs.orchardproject.net/Documentation/Developer-FAQ#Whatarethedefaultanddevbranches?WhichoneshouldIbeusing?

Who should use this software?

谁应该使用这个软件?


This software is in version 1.6. The code is in a stable state and constitutes

该软件的版本为1.6。代码处于稳定状态并构成

a solid foundation for building applications, themes and modules.

为构建应用程序,主题和模块奠定坚实的基础。

Suggestions are welcome in the discussion forums.

欢迎在论坛中提出建议。

You are allowed to use this software in any way that is compatible with the new BSD license.

您可以以与新BSD许可证兼容的任何方式使用此软件。

This includes commercial derivative work.

这包括商业衍生作品。

What's new?

什么是新的?


Orchard 1.6 fixes bugs and introduces the following features:

Orchard 1.6修复了错误并引入了以下功能:

  • ASP.NET MVC 4: We upgraded the MVC library to the latest available version.

  • ASP.NET MVC 4:我们将MVC库升级到最新版本。

  • Razor 2: The brand new version of the Razor view engine which simplifies many parts of your views.

  • Razor 2: Razor视图引擎的全新版本,简化了视图的许多部分。

Details here http://vibrantcode.com/blog/2012/4/10/whats-new-in-razor-v2.html/

详情请访问http://vibrantcode.com/blog/2012/4/10/whats-new-in-razor-v2.html/

and here http://vibrantcode.com/blog/2012/4/13/what-else-is-new-in-razor-v2.html/.

在这里http://vibrantcode.com/blog/2012/4/13/what-else-is-new-in-razor-v2.html/

  • Web API: The rest-enabled web framework which lets you create API from Orchard modules

  • Web API:支持其余功能的Web框架,允许您从Orchard模块创建API

  • MySQL: There is now a third option in the setup screen to use MySQL as the database.

  • MySQL:现在在设置屏幕中有第三个选项使用MySQL作为数据库。

  • NHibernate 3.3: We upgraded the NHibernate library to the latest available version, allowing module developers

  • NHibernate 3.3:我们将NHibernate库升级到最新版本,允许模块开发人员使用

to leverage database caching.

利用数据库缓存。

  • SysCache: A default implementation of a database cache provider.

  • SysCache:数据库缓存提供程序的默认实现。

  • Performance: Some work as been done to improve performance in different places like Widgets/Layers and Blog archives.

  • 性能:有些工作是为了提高不同位置(如窗口小部件/图层和博客存档)的性能。

  • Precompiled target: There is a new "Precompiled" build target which generates a build without any source code

  • 预编译目标:有一个新的“预编译”构建目标,它生成一个没有任何源代码的构建

  • File monitoring is off by default: When building the website using a build script - usually for deployment - files won't be monitored by default.

  • 文件监控默认关闭:使用构建脚本构建网站时 - 通常用于部署 - 默认情况下不会监视文件。

  • Session configuration: Sessions behavior can be defined per module and per route, and are on by default

  • 会话配置:可以为每个模块和每个路由定义会话行为,默认情况下处于启用状态

The full list of more than 200 fixed bugs for this release can be found here:

可以在此处找到此版本的200多个修复错误的完整列表:

  • Bugs fixed in 1.6.

  • [1.6中修复的错误](http://orchard.codeplex.com/workitem/list/advanced?keyword=\u0026status=Fixed|Closed\u0026type=All\u0026priority=All\u0026release=Orchard%201.6\u0026assignedTo=All\u0026component=All\u0026sortField=LastUpdatedDate\u0026sortDirection=Scendingnding@page=0) 。 *

How to upgrade from a previous version

如何从以前的版本升级


You can find migration instructions here: http://docs.orchardproject.net/Documentation/Upgrading-a-site-to-a-new-version-of-Orchard.

您可以在此处找到迁移说明:http://docs.orchardproject.net/Documentation/Upgrading-a-site-to-a-new-version-of-Orchard

No matter what migration path you take, please take the precaution of making a backup of your

无论您采取何种迁移路径,请采取预防措施备份您的

site and database first.

站点和数据库第一。

Upgrading from Orchard 1.3 and earlier

从Orchard 1.3及更早版本升级

Orchard 1.4 introduced breaking changes in the way content URLs are managed. Because of that,

Orchard 1.4引入了内容URL管理方式的重大变化。因此,

and if you're migrating from version 1.3 or earlier, the UpgradeTo16 module can be used to migrate

如果您要从1.3或更早版本迁移,可以使用UpgradeTo16模块进行迁移

data. If you upgrade a site to 1.6RC from 1.3 or earlier and can't

数据。如果您将站点从1.3或更早版本升级到1.6RC,则不能

see your contents, you probably need to run this module. In order to do that, go to the admin

看到你的内容,你可能需要运行这个模块。为此,请转到管理员

section of the site (by appending /admin to the URL where the home page should be), then go

网站的一部分(通过将/ admin添加到主页所在的URL),然后转到

to Modules and enable the feature.

到模块并启用该功能。

The feature, once enabled, adds a new entry to the admin menu: "Upgrade to 1.6", that can

该功能一旦启用,就会在管理菜单中添加一个新条目:“升级到1.6”,即可

migrate the Route data of your content items as well as field data from older field modules, and menu items.

迁移内容项的Route数据以及旧字段模块和菜单项中的字段数据。

Themes

主题

If you are using a custom theme, the new Razor parser might fail on the previous version of the LogOn.cshtml

如果您使用的是自定义主题,则新的Razor解析器可能会在以前版本的LogOn.cshtml上失败

template. If you have such a file in your theme then you will need to change lines 2 and 3 accordingly:

模板。如果您的主题中有这样的文件,则需要相应地更改第2行和第3行:

@{

    var userCanRegister = WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().UsersCanRegister;

    var enableLostPassword = WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().EnableLostPassword;

}

How to Reset Your Site Data

如何重置您的网站数据


The App_Data directory contains database and settings documents produced during setup.

App_Data目录包含安装期间生成的数据库和设置文档。

The contents of this directory are protected from download by visitors to your site.

该目录的内容受到访问者保护,不会被您网站的访问者下载。

To completely reset your site (destroy all data, starting from the setup screen again),

  • 要完全重置您的站点*(销毁所有数据,再次从设置屏幕开始),

you can delete the contents of this directory. This action is irreversible so backup first!

您可以删除此目录的内容。这个动作是不可逆转的,所以先备份!

For other known issues, please refer to http://orchard.codeplex.com/workitem/list/basic.

有关其他已知问题,请参阅http://orchard.codeplex.com/workitem/list/basic

Contributors

贡献者


This software would not exist without the community. In particular, for this release,

没有社区,该软件将不存在。特别是,对于此版本,

we should all be grateful to the following people who contributed patches and features:

我们都应该感谢以下提供补丁和功能的人:

  • Antoine Griffard (agriffard)

  • Antoine Griffard([agriffard](http://www.codeplex.com/site/users/view/agriffard)) *

  • Benedek Farkas (nightwolf226)

  • Benedek Farkas([nightwolf226](http://www.codeplex.com/site/users/view/nightwolf226)) *

  • Bertrand Le Roy (bertrandleroy)

  • Bertrand Le Roy([bertrandleroy](http://www.codeplex.com/site/users/view/bertrandleroy)) *

  • David Cornish (davidcornish)

  • David Cornish([davidcornish](http://www.codeplex.com/site/users/view/davidcornish)) *

  • David Hayden (davidhayden)

  • 大卫海登([davidhayden](http://www.codeplex.com/site/users/view/davidhayden)) *

  • Giscard Biamby (TheMonarch)

  • Giscard Biamby([TheMonarch](http://www.codeplex.com/site/users/view/TheMonarch)) *

  • Jeff Bullock (j3ffb)

  • Jeff Bullock([j3ffb](http://www.codeplex.com/site/users/view/j3ffb)) *

  • Martin Skinner (filetek)

  • Martin Skinner([filetek](http://www.codeplex.com/site/users/view/filetek)) *

  • Matt Melling (kobowi)

  • Matt Melling([kobowi](http://www.codeplex.com/site/users/view/kobowi)) *

  • Michael Yates (mjy78)

  • Michael Yates([mjy78](http://www.codeplex.com/site/users/view/mjy78)) *

  • Nathan Swenson (nswenson)

  • Nathan Swenson([nswenson](http://www.codeplex.com/site/users/view/nswenson)) *

  • Nicholas Mayne (Jetski5822)

  • Nicholas Mayne([Jetski5822](http://www.codeplex.com/site/users/view/Jetski5822)) *

  • Pedro Costa (pnmcosta)

  • Pedro Costa([pnmcosta](http://www.codeplex.com/site/users/view/pnmcosta)) *

  • Piotr Szmyd (pszmyd)

  • Piotr Szmyd([pszmyd](http://www.codeplex.com/site/users/view/pszmyd)) *

  • Rebecca Pleshaw (Rebecca)

  • Rebecca Pleshaw([Rebecca](http://www.codeplex.com/site/users/view/Rebecca)) *

  • Rickard Pettersson (RickardP)

  • Rickard Pettersson([RickardP](http://www.codeplex.com/site/users/view/RickardP)) *

  • Sebastien Ros (sebastienros)

  • Sebastien Ros([sebastienros](http://www.codeplex.com/site/users/view/sebastienros)) *

  • Sergey Ermakovich (yermakovich)

  • Sergey Ermakovich([yermakovich](http://www.codeplex.com/site/users/view/yermakovich)) *

  • Sipke Schoorstra (sfmskywalker)

  • Sipke Schoorstra([sfmskywalker](http://www.codeplex.com/site/users/view/sfmskywalker)) *

  • Thomas Bolon (styx31)

  • Thomas Bolon([styx31](http://www.codeplex.com/site/users/view/styx31)) *

  • Tim Mylemans (AimOrchard)

  • Tim Mylemans([AimOrchard](http://www.codeplex.com/site/users/view/AimOrchard)) *

  • Zoltán Lehóczky (Piedone)

  • ZoltánLehóczky([Piedone](http://www.codeplex.com/site/users/view/Piedone)) *