Skip to content

Orchard 1.5

建立:1.5.1

Published: 7/18/2012

发布时间:2012年7月18日

Updated for version 1.5.1: 7/20/2012

已针对1.5.1版本更新:2012年7月20日

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.5.1.zip file.

或者,要手动安装发行版,请下载Orchard.Web.1.5.1.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.5.1.zip

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

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

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

If you want to take a look at the source code, OrchardSource.1.5.1.zip is fine.

如果你想看看源代码,OrchardSource.1.5.1.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.5.1. The code is in a stable state and constitutes

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

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.5.1 fixes bugs and introduces the following features:

Orchard 1.5.1修复了bug并引入了以下功能:

  • Admin Search: Enables search from the content screen of the admin dashboard.

  • 管理员搜索:从管理仪表板的内容屏幕启用搜索。

  • Admin-based Placement: the editor placement of parts and fields can now be overridden from

  • 基于管理员的放置:现在可以覆盖部件和字段的编辑器放置

the content type editor.

内容类型编辑器。

  • AntiSpam: The AntiSpam module provides various spam-fighting features and infrastructure pieces.

  • AntiSpam: AntiSpam模块提供各种反垃圾邮件功能和基础设施。

It makes it possible to prevent spam on arbitrary contents (previous versions of Orchard only had

它可以防止任意内容上的垃圾邮件(以前版本的Orchard只有

anti-spam services on comments). With this module, you can add ReCaptcha, external spam-filtering using

评论上的反垃圾邮件服务)。使用此模块,您可以添加ReCaptcha,使用外部垃圾邮件过滤

the Akismet or TypePad external services or submission limits simply by adding a few parts to your types,

Akismet或TypePad外部服务或提交限制只需在您的类型中添加几个部分,

including custom forms.

包括自定义表格。

  • Content Permissions: This module provides a part that can be added to any content type to restrict

  • 内容权限:此模块提供可添加到任何要限制的内容类型的部分

viewing permissions per content item instead of per content type.

查看每个内容项的权限,而不是每个内容类型。

  • Content Picker: This module provides an extensible content item picker that can be used to build

  • 内容选择器:此模块提供可用于构建的可扩展内容项选取器

relationships between content items.

内容项之间的关系。

  • Custom Forms: Custom forms are built as content types, typically using fields. Once you've built

  • 自定义表单:自定义表单构建为内容类型,通常使用字段。一旦你建成了

the content type for your custom form, you can enable its instances to be created from the front-end

您自定义表单的内容类型,您可以启用从前端创建其实例

by anonymous users. This is useful, for example, to create contact forms.

由匿名用户。例如,这可用于创建联系表单。

  • Navigation: The navigation module now supports hierarchical menus and breadcrumbs. The navigation

  • 导航:导航模块现在支持分层菜单和面包屑。导航

system is also now pluggable. Existing applications should replace the Menu part with the new Navigation

系统现在也可插拔。现有应用程序应使用新导航替换Menu部分

part.

部分。

  • Layout placement: Placement.info files can now use the '/' character to specify Layout zone targets likes this: "/AsideSecond:10"

  • 布局放置Placement.info文件现在可以使用'/'字符指定布局区域目标,如下所示:“/ AsideSecond:10”

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

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

  • Bugs fixed in 1.5.

  • [错误修复1.5](http://orchard.codeplex.com/workitem/list/advanced?keyword=\u0026status=Fixed%7cClosed\u0026type=All\u0026priority=All\u0026release=Orchard%2b1.5\u0026assignedTo=All\u0026component=All\u0026sortField=LastUpdatedDate\u0026sortDirection=Scendingnding@page=0 )。 *

  • Bugs fixed in 1.5.1.

  • [在1.5.1中修复的错误](http://orchard.codeplex.com/workitem/list/advanced?keyword=\u0026status=Fixed%7cClosed\u0026type=All\u0026priority=All\u0026release=Orchard%2b1.5.1\u0026assignedTo=All\u0026component=All\u0026sortField=LastUpdatedDate\u0026sortDirection=降序&页= 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.

站点和数据库第一。

导航模块

You will need to enable the Content Picker feature before you can edit the navigation.

在编辑导航之前,您需要启用内容选择器功能。

  • In Dashboard -> Modules, search for Content Picker and enable it

  • 在仪表板 - >模块中,搜索内容选择器并启用它

In Orchard 1.5.1 the navigation is no more injected automatically in the Navigation zone.

在Orchard 1.5.1中,导航区域中不再自动注入导航。

Because of this change you will need to add a widget to render the main menu.

由于此更改,您将需要添加一个小部件来呈现主菜单。

  • In Dashboard -> Navigation, search for the Navigation zone and click Add

  • 在仪表板 - >导航中,搜索导航区域,然后单击添加

  • Select Menu Widget

  • 选择菜单小部件

  • In Title type "Main Menu"

  • 在标题类型“主菜单”中

  • Uncheck the "Show title" checkbox

  • 取消选中“显示标题”复选框

  • In Menu select "Main Menu"

  • 在菜单中选择“主菜单”

  • Click the Save button

  • 单击“保存”按钮

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 UpgradeTo15 module can be used to migrate

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

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

数据。如果您将站点从1.3或更早版本升级到1.5.1而不能

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: "Migrate to 1.5", that can

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

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

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

See Orchard 1.4 release notes for more details.

有关详细信息,请参阅[Orchard 1.4发行说明](/ Documentation / Orchard-1-4-Release-Notes)。

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:

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

  • Benedek Farkas (nightwolf226)

  • Benedek Farkas(nightwolf226) *

  • Bertrand Le Roy (bertrandleroy)

  • Bertrand Le Roy(bertrandleroy) *

  • Martin Skinner (filetek)

  • 马丁斯金纳(filetek) *

  • Geert Doornbos (geertdoornbos)

  • Geert Doornbos(geertdoornbos) *

  • Jonas Ledel (JLedel)

  • 乔纳斯莱德尔(JLedel) *

  • John Murdoch (jrmurdoch)

  • 约翰默多克(jrmurdoch) *

  • Nicholas Mayne (Jetski5822)

  • 尼古拉斯·梅恩(Jetski5822) *

  • Piotr Szmyd (pszmyd)

  • Piotr Szmyd(pszmyd) *

  • Sebastien Ros (sebastienros)

  • Sebastien Ros(sebastienros) *

  • Sean Farrow (SeanFarrow)

  • 肖恩法罗(SeanFarrow) *

  • Thomas Bolon (styx31)

  • Thomas Bolon(styx31) *

  • Zoltán Lehóczky (piedone)

  • ZoltánLehóczky(piedone) *