Sharepoint Online-内容类型 [英] Sharepoint Online - Content type
问题描述
我已经在SharePoint Online中创建了一个文档库.我已经使用UI功能隐藏了一种内容类型,并取消了visible选项.因此,该内容类型在"New"文档库标签上不可见.
我已将此文档库另存为.stp文件.我已经基于此列表模板创建了一个库.但是该内容类型在新建"文档库标签中可见.
CSOM代码
因此,我已经在线编写了SharePoint(CSOM代码)以隐藏新建"文档库标签中的一种内容类型.内容类型是隐藏的,而不显示在新建"的文档库"标签.
我已将此文档库另存为.stp文件.我已经基于此列表模板创建了一个库.但是,该内容类型显示在新建"文档库标签中.
我想隐藏内容类型,并使用此列表模板基于此模板创建新的文档库.
还有其他解决方法吗?
Shubha
推荐答案
嗨shubha,
Hi shubha,
在将该库另存为模板之前,请转到库设置->高级设置->允许管理内容类型,然后选择否".
Before save this library as template, go to library settings->advanced settings->Allow management of content types, select "No".
然后使用此模板创建一个新文档,没有没有不可见的内容类型.
Then use this template to create a new document, there is no content type which not select visible.
此外,此方法有一个局限性:如果用户再次在新库中为允许管理内容类型"选择是",则该内容类型仍然可见.
Besides, there is a limitation with this method: if user selects "Yes" for "allow management of content types" in the new library again, the content type still visible.
最诚挚的问候,
Grace Wang
Grace Wang
这篇关于Sharepoint Online-内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!