Orchard中的Content Type,Content Parts和Content Items究竟是啥?

简介:

Orchard的文章说的不够清楚,用的几天还是没有什么进展,所以决定分块吃它,第一,先吃它的Content Type,Content Parts和Content Items.

下面是我对这三个东西的理解,如有不准确,随时来信。

一 content type是指定某种要被重用的类型,也就是内容类型,它由若干个content parts组成。

二 content parts是指某种要被重用的HTML代码块,它由某干个Fields(功能组,代码单元,最小页面元素单位)组成,每个fields都叫做part

三 content item它是指具体的页面,它不被重用,你可以建立某种content type的content item,感觉 item就是type的一个实例对象,呵呵。

四 content type是通过model产生,而业务逻辑是在model中实现的,model是一个MVC网站的一部分,即mvc3中的area,它被创建后,需要在orchard中

去开启它

 本文转自博客园张占岭(仓储大叔)的博客,原文链接:Orchard中的Content Type,Content Parts和Content Items究竟是啥?,如需转载请自行联系原博主。

目录
相关文章
|
3月前
|
JSON Java 数据格式
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
Could not extract response: no suitable HttpMessageConverter found for ..content type [text/html...]
|
5月前
head 插件 Content-Type header [application/x-www-form-urlencoded] is not supported
head 插件 Content-Type header [application/x-www-form-urlencoded] is not supported
42 1
|
6月前
|
JSON 数据格式
Content type ‘multipart/form-data;boundary=------57031299820747271;charset=UTF-8‘ not supported的解决方案
Content type ‘multipart/form-data;boundary=------57031299820747271;charset=UTF-8‘ not supported的解决方案
61 0
01-CSS3-justify-content: space-around; justify-content: space-between;
01-CSS3-justify-content: space-around; justify-content: space-between;
the content is displayed over another view controller’s content
the content is displayed over another view controller’s content
104 0
the content is displayed over another view controller’s content
|
Android开发
【Android】解决TextView.setText提示Do not concatenate text displayed with setText. Use resource string
【Android】解决TextView.setText提示Do not concatenate text displayed with setText. Use resource string =
309 0
|
JavaScript 前端开发
sendData to ABAP backend via multiple form content type
Created by Jerry Wang, last modified on Aug 20, 2014
sendData to ABAP backend via multiple form content type
the title and note has maintained the same text type
the title and note has maintained the same text type
81 0
the title and note has maintained the same text type
Access context of data source and work center view do not match
这个错误消息提示我们,data source的access context和待分配到工作中心的access context必须匹配:
Access context of data source and work center view do not match