Think in SharePoint 2010 OOTB Project: Site Columns & Site Content Type

SharePoint 2007 OOTB 项目力求快速开发SharePoint Portal,项目上主要是以OOTB Feature为主,在开发上大部分是在用SharePoint Designer。

这样的模式有以下缺点:

  1. 没有应用程序周期管理的支持(ALM),没有源代码管理工具,没有利用解决方案包进行部署。

  2. 所有自定义的内容都在数据库中,不能利用文件模板(Ghosted Page)来增强访问效率。

没有源代码管理工具对站点进行开发的风险是很大的,没有用Solution Package 部署这样会对效率上造成一些影响。开发这类型的站点如果部署Solution 也必须要在Farm级别,这也是直接用SPD的原因了。

目前SP 2010 + VS2010 + TFS2010开发站点,再加上Sandbox Solution不需要Farm管理员只要Site Collection的权限进行部署,大大提高SharePoint 2010 开发效率。

下面就介绍下SP2010 + VS 2010 开发Site Columns & Site Content Type 。

Best Practice: Building Everything As Features.

 

Figure: Feature3 contains ContentTypes and FieldXmls feature.

 

Filed Element:  http://bit.ly/g93cRL  

 

ContentTypeID   ID 继承关系http://bit.ly/8jlL8F  

XMLDocuments  指明那种类型的文档模板跟这个类容类型相关联   http://bit.ly/eIowly  

 

Figure:  Sandboxed Solution set to true

 

 Figure: Sandboxed Solution has been deployed.

 

 Figure: Site Columns have been deployed

 

 Figure: Custom Content Types have been deployed via the sandboxed solution

 

 Figure: Relationship between SiteColumns and Content Type http://bit.ly/iapFpd

 

TIP: 下载http://bit.ly/PPGfS 可以导出已有的SiteColumns 和 SiteContentType的定义。然后将其定义打包成上面的两个MODULES 。


希望和大家在这里讨论关于更多的 OOTB Project Development and Deployment.  

 

好了, 下节介绍 Think in SharePoint 2010 Project – Deploy Pages & Web parts.

 

posted @ 2010-12-02 23:02  crazysharepoint  阅读(1772)  评论(0编辑  收藏  举报