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.

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

Figure: Feature3 contains ContentTypes and FieldXmls feature.

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

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

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

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

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

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

Figure:  Sandboxed Solution set to true

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

 Figure: Sandboxed Solution has been deployed.

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

 Figure: Site Columns have been deployed

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

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

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

 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.

 

相关文章:

  • 2021-05-20
  • 2021-05-18
  • 2021-08-30
  • 2022-02-10
  • 2022-02-17
  • 2021-10-26
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2021-09-19
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案