Orchard 功能简介

Core modules

 

    1. Common
      此模块定义了3个Part和一个Field,它们是Common Part, Body Part, Identity Part, and Text Field.
      Common Part: 定义了Content Item创建、发布、修改的时间及所有者ID
    2. Body Part: 定义了富文本编辑器,可以通过设置来选择使用哪种编辑器,默认是html编辑器Tinymce
    3. Identity Part: 是一个GUID标识,使用这个part是为了使用Import/Export Widget Item,通常在定义Widget时都会加上这个Part.
    4. Text Field: 就是一文本字段。
Containers
这个模块引入了4个 Part来创建Content的层次关系

Container Part: 它能包含某个Content Type的Content Items,可以通过设置指定排序及分页规则

Containable Part: 指明一个Content Type中的Content Items可以被包含

Container Widget part: 它与Container Part相似,只是它是在Container Widget中使用,并具有过滤和选择子集的能力

Custom properties part: 这个Part现在已被Projection取代,不应再使用了。定义了三个属性用来过滤和排序

Contents

为自定义Content Type创建基本的信息

Features

  • Contents (Core): 自定义Content Type的基础.
  • Content Control Wrapper (off by default): 在前台显示一个编辑链接

Dashboard

管理后台的首页

Feeds

提供了基础用来创建 RSS, Atom or other types of feeds.

Navigation

提供了菜单导航,可创建层次菜单,并且它是可扩展的。菜单项采用Provider模式,可以自定义许多的Provider,系统中提供了4个,定义了Menu Widget,可以在Widget中呈现层次Menu,Breadcrumb Menu 或Local Menu,通过Navigation Part可以使用Content Item加入到菜单中,这个模块也提供了后台管理菜单。

Reports

产生和显示基本的记录,在安装期间它记录了各种安装操作。

Scheduling

这个模块的APIs用来执行计划任务,比如 Publish Later to schedule operations to be executed in the future.

Settings

各种设置信息被存储在一个Content Item中, 它可以扩展, 它使用模块可以定义自己的设置

Shapes

Orchard中的Shapes是用来构建一块html,类似于Partial View,这个模块提供了基本的shapes,核心的shapes在CoreShapes.cs文件中,其它shapes在Views目录中,所有的shapes都能在主题中重写。

Core shapes
  • DisplayTemplate, EditorTemplate: Views中的这两个目录通常被用来放置Part、Field的Display和Editor Shapes
  • Layout: 这是最外层的shape,同时被Document.cshtml包裹,也可以定义顶层的zones 
  • List: 呈现shapes为列表.
  • Menu, MenuItem, LocalMenu, LocalMenuItem and MenuItemLink: 菜单的呈现
  • Pager and associated shapes and alternates: 呈现分页.

Resource, HeadScripts, FootScripts, Metas, HeadLinks, StyleSheetLinks, Style: shapes used to render resources such as script tags or stylesheets.

  • Zone: a special shape that is made to contain other shapes, typically but not limited to widgets.

Templated shapes
  • Breadcrumb: 菜单的Breakcrumb呈现
  • ErrorPage and NotFound: 当找不到Content Items时呈现
  • Header: 页面的顶部
  • Message: 呈现各种信息,如 警告,错误信息
  • User: 显示登入、登出及到后台的链接.

Title

仅提供了一个Ttitle Part.

XmlRpc

使用户可以在远端发布信息,比如用Windows Live Writer.Blog模块实现了这个功能。

 

Non-core modules

 

Markdown (WebPI, off by default)

Markdown 提供Markdown语法的编辑器.

可以在Content Type的 Body Part中设置 flavor为 markdown 来启用Markdown编辑器.

Orchard.Alias (WebPI)

这个模块可以使用Content Item设置一个别名来映射到一个友好的Url,Autoroute就是基于这个模块构建的

Features
  • Alias: 是aliases 核心
  • Alias UI (off by default): 提供在管理后台创建,修改,删除aliases .

Orchard.AntiSpam (WebPI, off by default)

这个模块提供的垃圾防护功能,它能为任意的Content Type阻止垃圾信息。

Features
  • Anti-Spam: 核心,同时提供了验证码的功能,添加ReCaptcha part 到Content Type中,然后去需要设置 一些key才能工具。
  • Akismet Anti-Spam Filter: 使用第三方 Akismet 的服务.
  • TypePad Anti-Spam Filter: 使用第三方TypePad 的服务.

Orchard.ArchiveLater

计划存档功能.

Orchard.Autoroute (WebPI)

这个一个很有用的模块,它使Content Type能基于 token产生URL,

Orchard.Blogs (WebPI)

博客模块.

Orchard.CodeGeneration

这个模块是开发模块中用来生成模块基本结构和文件的.

Orchard.Comments (WebPI)

评论模块,定义了Comment Part.

Orchard.ContentPermissions (WebPI, off by default)

提供了Content Item层次的权限控制。通过添加ContentPermissions Part来启用。

Orchard.ContentPicker

提供了关联Content Item的功能.

Orchard.ContentTypes (WebPI, off by default)

可以在后台管理Content Type,Part,Fields等.

Orchard.CustomForms (WebPI, off by default)

可以使用在后台就可以创建表单,它是一个Content .

Orchard.DesignerTools

帮来辅助主题开发.

Features
  • Shape Tracing: 提供了暴露服务端的页面结构, generate alternates, and inspect the model, placement and templates for any shape.
  • URL Alternates: 能为所有shape添加基于URL的候选shape 比如 "someshape-url-thecurrenturl" or "someshape-url-homepage".
  • Widget Alternates: 为指定的Widget和layer添加候选 .

Orchard.Email

提供了发送Email的功能.

Orchard.Fields (WebPI)

提供了几种Fields, Input, Boolean, DateTime, Numeric, Link, Enumeration, and Media Picker fields .

Orchard.Forms (WebPI)

为开发者提供通过代码来动态创建表单。Projection and rules 依赖这个模块.

Orchard.ImportExport

提供了导入和导出Content Item的功能.

Orchard.Indexing, Orchard.Search and Lucene

提供了全文本索引和搜索的功能.

Orchard.jQuery (WebPI)

引入jQuery.

Orchard.Lists (deprecated)

这个模块已被功能更强的Projection取代.

Orchard.Localization

能为Content Item定义不同Culture的Content Item.

Orchard.Media (WebPI)

提供文件资源管理的功能.

Orchard.MediaPicker (WebPI)

为Body Part中的html编辑器提供了插入Media的功能,并定义了MediaPicker Field

Orchard.Messaging

为其它模块提供消息基础功能,它仅能被其它实现指定通道的模块依赖.

Orchard.Modules (WebPI)

提供了在后台管理模块

Orchard.MultiTenancy

多租户功能,通过这个模块可以实现通过一程序创建隔离的不同的网站.

Orchard.Packaging (WebPI)

为模块和主题提供打包的功能.

Features
  • Packaging commands: 定义了打包的命令.
  • Gallery: 集成了库的功能.
  • Package Updates: 使模块能通过后台更新.

Orchard.Pages (WebPI)

定义了Page Content Type.

Orchard.Projections (WebPI)

这是一个非常有用并功能强大的模块,提供了查询任意Content Type的Item的功能,可以筛选,排序,并设置随意的显示

Orchard.PublishLater (WebPI, off by default)

PublishLater part 能添加到draftable content types 中,并请允许计划发布内容

Orchard.Recipes (WebPI)

是一个xml文件,用来描述网站的内容和操作的集合,被用来在安装时初始化安装数据

Orchard.Roles (WebPI)

角色管理及权限控制

Orchard.Rules (WebPI, off by default)

在Content Type层次提供了事件功能,类似于Part的Driver,只是作用层次不同.

Orchard.Scripting (WebPI)

为了不开发整个模块而启用简单的可编程性,通过 Scripting来实现. For example, widget layer visibility is defined by rules that are written as simple script expressions. The scripting infrastructure is language-agnostic, and new languages could be added by a module. Orchard comes with one implementation that is a simple expression language whose syntax is a subset of Ruby.

Features
  • Scripting: the scripting infrastructure.
  • Lightweight Scripting: 提供Ruby语言子集,定义了表达式.
  • Scripting Rules: 任意的脚本表达式触发的规则.

Orchard.Scripting.DLR

基于 Orchard.Scripting,启DLR语言的功能,比如Ruby和Python .

Orchard.Setup (WebPI, off after setup)

安装模块,安装完成后自动禁用

Orchard.Tags (WebPI)

提供基于Tags组织内容的功能

Orchard.TaskLease

In web farm environments, it's often useful to send messages across all servers in the farm. This module implements a way for code to communicate tasks to the whole server farm.

Orchard.Themes (WebPI)

提供后台主题管理

Orchard.Tokens (WebPI, off by default)

Tokens 是在动态表达式中使用的上下文环境中的变量. For example, Autoroute 功能能定义给定Content Type的URL 模式,这些模式依靠tokens在特定的上下文中动态求出 . 例如:"{Content.Date.Format:yyyy}/{Content.Slug}" 应该解析为下面这样"2012/the-title".

Orchard.Users (WebPI)

用户模块.

Orchard.Warmup (WebPI, off by default)

能缓存指定的URL的页面,使一段时间内不会执行该页的程序代码,从而加快这个页面的响应速度.

Orchard.Widgets (WebPI)

Widgets是一段可重用的html,类似content part,不过它是Content Item,比part粒度更大 . 通过设置layer 规则使widget在特定的页面呈现.

Features
  • Widgets: 后台管理Widget.
  • Page Layer Hinting: 当发布一个新page时,提示用户是否创建一个新layer.
  • Widget Control Wrapper: 在前端添加一个修改链接.

TinyMCE (WebPI)

一个html编辑器.

UpgradeTo15 / UpgradeTo14 (WebPI, off by default)

从低版本升级到指定版本的模块.

 

转载于:https://www.cnblogs.com/ibrady/archive/2012/07/24/2606493.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值