You can add additional functionality to your site by enabling and disabling features exposed by the modules that are installed to Orchard. To view the available features, click Features under the Modules heading in the Orchard admin panel.
您可以通过启用和禁用安装到Orchard的模块公开的功能,为站点添加其他功能。要查看可用功能,请单击Orchard管理面板中 Modules 标题下的 Features 。
The Features screen displays the available features that can be enabled or disabled. Depending on which features are enabled or disabled, your site will have different admin panel options, front-end user interface elements, and other behaviors. The default view of available features displays in "Box" view (to maximize the number of features displayed at a glance).
Features 屏幕显示可以启用或禁用的可用功能。根据启用或禁用的功能,您的站点将具有不同的管理面板选项,前端用户界面元素和其他行为。可用功能的默认视图显示在“Box”视图中(最大化显示的功能数量一目了然)。
You can also switch views to "List" view if you prefer to see your features as a list of items with more verbose descriptions.
如果您希望将功能视为具有更详细描述的项目列表,还可以将视图切换到“列表”视图。
To enable a feature, simply click Enable for that feature.
要启用某项功能,只需点击该功能的启用即可。
When a feature is enabled a message appears at the top of the Features screen telling you the feature was enabled successfully.
启用某项功能后,功能屏幕顶部会显示一条消息,告知您该功能已成功启用。
A feature can depend on one or more other features (listed under the feature name). When a feature with dependencies is enabled, the dependencies are also automatically enabled. For example, the Gallery feature depends on the Packaging Commands feature, which in turn depends on Packaging.
功能可以依赖于一个或多个其他功能(在功能名称下列出)。启用具有依赖项的功能后,还会自动启用依赖项。例如, Gallery 功能取决于 Packaging Commands 功能,而后者依赖于 Packaging 。
Enabling Gallery will enable Packaging Commands and Packaging.
启用 Gallery 将启用 Packaging Commands 和 Packaging 。
Enabling a feature (such as Gallery), will sometimes add additional menu items in the admin panel, as shown in the previous image.
启用某项功能(例如图库)有时会在管理面板中添加其他菜单项,如上图所示。
Orchard also provides a command-line interface, from which you can also list, enable, and disable features. You can find the Orchard command-line tool in the bin directory of the application, and run it from the root of the website by typing bin\orchard.exe
at the Windows command-prompt. To list available features, type feature list
or feature list /Summary:true
at the command-prompt.
Orchard还提供命令行界面,您还可以从中列出,启用和禁用功能。您可以在应用程序的bin目录中找到Orchard命令行工具,并通过在Windows命令提示符下键入bin \\ orchard.exe
从网站的根目录运行它。要列出可用功能,请在命令提示符下键入“功能列表”或“功能列表/摘要:true”。
Enable a feature from the command-line by typing feature enable <feature-name>
, for example: feature enable Gallery
.
通过“输入feature enable&lt; feature-name&gt;”从命令行启用一个功能,例如:feature enable Gallery
。
For more information about the Orchard command-line interface, see Using the command-line interface.
有关Orchard命令行界面的更多信息,请参阅[使用命令行界面](使用命令行界面)。
Change History
改变历史
-
Updates for Orchard 1.8
-
Orchard 1.8的更新 *
- 9-07-14: Updated all the screen shots for Enabling/Disabling feaures