在SharePoint的onet.xml中定义功能
在我们的网站定义中定义使用哪些功能时,需要分别指定site-scoped和web-scoped。在下面的例子中,我们添加了site-scoped功能(the basic Web Part feature和SharePoint自带的tree-state workflow)来启用基本的功能,以及web-scoped一节,首先引用了一个自定义项目列表功能,其中包含了列表定义。接下来两个功能是SharePoint标准元素,其中包含了很多列表模版,如自定义列表或日历,还有移动设备重定向功能。
configuration的内容如下:
<Configuration ID=”0″ Name=”Production” CustomMasterUrl=”_catalogs/masterpage/custom.master” MasterUrl=”_catalogs/custom.master”> <Lists> <List FeatureId …. </List> </Lists> <Modules> <Module Name=”Default” /> <Module Name=”Reports” /> </Modules> <SiteFeatures> <!– BasicWebParts Feature –> <Feature ID=”023BSES71-1U5D-4B2H-R340-BE5123EBDA57″ /> <!– Three-state Workflow Feature –> <Feature ID=”FGE5D250-621E-4743-95SA-87B472322DC7″ /> </SiteFeatures> <WebFeatures> <!– Custom ProjectList Feature –> <Feature ID=”7346F624-0SE1-4H6D-H2A2-80HS744FD8BC” /> <!– TeamCollab Feature –> <Feature ID=”00BFEA71-4EA5-48D4-A4AD-7SD5C011ABE5″ /> <!– MobilityRedirect –> <Feature ID=”F41CC622-37E5-4943-B6A8-74UJDB3FD8A4″ /> </WebFeatures> </Configuration>
参考资料
浙公网安备 33010602011771号