SharePoint\O365 "See also"功能 and site feature 激活\禁用小节
来源:互联网 发布:破解 经淘宝排查认定 编辑:程序博客网 时间:2024/05/16 05:22
最近因为问题发现了SharePoint的“See also"功能,该功能是由SharePoint自动的Feature管理的
Feature Name:ItemFormRecommendations, Feature Identity: 39d18bbf-6e0f-4321-8f16-4e3b51212393
这里有一个列表,列出了所有SharePoint 2013具有的feature。
http://social.technet.microsoft.com/wiki/contents/articles/14423.sharepoint-2013-existing-features-guid.aspx
功能的效果如下图,当用户上传文档到Team site文档库后,在查看属性页面会把与该文档相关的文档也列出来。
为什么研究它呢?因为有的用户不喜欢,不想要它,或者对于一些列表如工作流任务列表,可能并不需要相关内容显示出来。
知道了由哪个功能管理,关掉它就比较容易了,只需要禁用该Feature即可,在需要的时候再重新激活。
激活\禁用功能可以通过使用CSOM来实现,具体代码如下:
ClientContext ctx = new ClientContext("https://siteurl"); ctx.Credentials = new SharePointOnlineCredentials("username", GetSecurePassword("password")); Site site = ctx.Site; ctx.Load(site.Features); ctx.ExecuteQuery(); //禁用功能 site.Features.Remove(new Guid("39d18bbf-6e0f-4321-8f16-4e3b51212393"), false); ctx.ExecuteQuery(); //激活功能 site.Features.Add(new Guid("39d18bbf-6e0f-4321-8f16-4e3b51212393"), false, FeatureDefinitionScope.Farm); ctx.ExecuteQuery();
需要注意的是激活Feature时Scope用Site会报错,错误信息如下图:
明明是SC级别的,对么,不知道为什么需要将Scope设置为Farm才能激活成功(设置为None也可以)。
禁用ItemFormRecommendations功能后,"See also"模块就不会显示在文档的查看属性页面了。
另外还可以自定义"See also"样式,可参照下面的链接:
https://blogs.technet.microsoft.com/sharepoint_support/2015/06/19/sharepoint-2013-28/
- SharePoint\O365 "See also"功能 and site feature 激活\禁用小节
- 小议:Site Collection中SharePoint Publishing Feature无法激活的解决方案
- see also
- SharePoint\O365 CSOM操作"请求访问设置"功能
- 不能激活Office SharePoint Server Publishing feature
- sharepoint 2010 powershell 命令激活timejob feature
- SharePoint Publishing Site Map Providers and Navigation
- Sharepoint 定义Feature的功能 一
- SharePoint 2013 之社交功能(Social feature)
- SharePoint solution and feature management with PowerShell
- sharepoint site
- Sharepoint 2013 激活feature 遇到如下问题 可以用命令激活。
- 微软在SharePoint Online里面去掉了Public Site功能
- SharePoint Site "Language Settings"功能与CSOM的对应
- SharePoint Site "Regional Settings"功能与CSOM的对应
- O365 "打开或关闭脚本"功能
- How to see the Master Page option Under Look and Feel in site settings?
- SharePoint PowerShell Create Site
- Content-Type:application/x-www-form-urlencoded 和 Content-Type:multipart/rel
- 【BZOJ1143】[CTSC2008]祭祀river【最长反链】【传递闭包】
- Android BitmapShader 实战 实现圆形、圆角图片
- Maven的安装和配置——在Windows上安装Maven
- 线性表的应用1(顺序表的遍历和查找)
- SharePoint\O365 "See also"功能 and site feature 激活\禁用小节
- Messenger/Handler and Binder
- JQueryEasyUi学习笔记
- Cordova android框架详解
- Oracle 实例内存结构
- LeetCode 258 -Add Digits ( JAVA )
- python小技巧
- Android进阶——属性动画Property Animation详解(一)
- mac mysql 5.7.11 安装成功之后忘记密码