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

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

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

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

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

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

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

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

去开启它

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

 

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-08-19
  • 2021-06-03
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-10-31
  • 2021-12-05
相关资源
相似解决方案