如何向所有现有和新库中添加新的定义的内容类型 [英] How to add new defined content types to all existing and new libraries

查看:76
本文介绍了如何向所有现有和新库中添加新的定义的内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要在所有SharePoint网站上所有现有库和新库中的环境中实现定义的内容类型列表.我创建了一个内容中心,并能够与另一个站点中的库进行同步,但是我需要能够自动执行此操作 所有图书馆和将来的图书馆.我进行了搜索,并提出了一些使用功能的建议.有人做过类似的事情吗?感谢任何指导.

We need to implement a defined list of content types in our environment on all existing and new libraries on all SharePoint sites.  I created a Content Hub and was able to sync with a library in another site however I need to be able to do this automatically to all libraries and future libraries.  I searched and some suggested using a feature.  Has anyone done something similar? Any guidance is appreciated.

推荐答案

创建 并在内容中心发布了一种内容类型(您可以在下面的线程中查看指南),然后可以通过PowerShell将内容类型添加到现有库中.

When you create and published a content type in content hub(you could check below thread for guideline), you could add the content type to existing library by PowerShell.

示例PowerShell脚本.

#Get site object and specify name of the library to look for in each site


site = Get-SPSite http://sp: 12002 #浏览每个站点并更改指定列表上的内容类型
site = Get-SPSite http://sp:12002 #Walk through each site and change content types on the list specified


Web =


这篇关于如何向所有现有和新库中添加新的定义的内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆