如何通过PowerShell 部署Feature(SharePoint 2013)

编程入门 行业动态 更新时间:2024-10-28 16:18:00

很多企业都有自己的开发团队,根据企业需求做一些Feature的二次开发,那么FeatureContent都包含哪些呢?怎么把自定义的Feature部署到SharePointServer中呢?

 

FeatureContent

 

很多企业都有自己的开发团队,根据企业需求做一些Feature的二次开发,那么FeatureContent都包含哪些呢?怎么把自定义的Feature部署到SharePointServer中呢?

 

FeatureContent

 


  • Web Parts and Visual Web Parts:用户可以add这些web partweb part page
  • ASP.NET user control or server controls:用户不能修改这些UI components.
  • Custom actions:在SharePointmenu中出现一些shortcuts ,例如:Site Actions menu.
  • List instances:确保Featureactivated,新list能够被创建
  • List templates 用户可以使用它创建新List
  • Content types:定义新的Item或者Document类型.
  • Fields:被assembledcontent type中。
  • Workflows:管理business 流程。

 

自定义的Feature部署步骤:

 

  1. Copy Customized featurefolder到下面LocationC:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\FEATURES,如下图所示:

 


 

  1. Administrator,打开SharePoint 2013 PowerShell,如下图所示:

 


  1. 使用下面的SharePoint PowerShell命令安裝FeatureInstall-SPFeature -Path “FeatureLocation Path",如下图所示:

 


 

  1. Site Collection Site FeatureEnable Feature,如下图所示:

 


  1. 激活成功后,即可使用,比如,我激活的自定义feature是一个content type,那么就可以到指定的Library中加进来,并用其为template创建document,如下图所示:

 


 

 

希望本篇文章能加深大家对自定义featurecontentconfigure有所理解,:)

 


更多推荐

如何通过PowerShell 部署Feature(SharePoint 2013)

本文发布于:2023-06-14 04:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1439494.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Feature   PowerShell   SharePoint

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!