很多企业都有自己的开发团队,根据企业需求做一些Feature的二次开发,那么Feature的Content都包含哪些呢?怎么把自定义的Feature部署到SharePointServer中呢?
Feature的Content:
很多企业都有自己的开发团队,根据企业需求做一些Feature的二次开发,那么Feature的Content都包含哪些呢?怎么把自定义的Feature部署到SharePointServer中呢?
Feature的Content:
- Web Parts and Visual Web Parts:用户可以add这些web part到web part page中
- ASP.NET user control or server controls:用户不能修改这些UI components.
- Custom actions:在SharePoint的menu中出现一些shortcuts ,例如:Site Actions menu.
- List instances:确保Feature被activated,新list能够被创建
- List templates: 用户可以使用它创建新List。
- Content types:定义新的Item或者Document类型.
- Fields:被assembled到content type中。
- Workflows:管理business 流程。
自定义的Feature部署步骤:
- Copy Customized feature的folder到下面Location:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\FEATURES,如下图所示:
- 用Administrator,打开SharePoint 2013 的PowerShell,如下图所示:
- 使用下面的SharePoint PowerShell命令安裝Feature:Install-SPFeature -Path “Feature的Location Path",如下图所示:
- 在Site Collection 的Site Feature中Enable Feature,如下图所示:
- 激活成功后,即可使用,比如,我激活的自定义feature是一个content type,那么就可以到指定的Library中加进来,并用其为template创建document,如下图所示:
希望本篇文章能加深大家对自定义feature的content和configure有所理解,:)
更多推荐
如何通过PowerShell 部署Feature(SharePoint 2013)
发布评论