且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何向所有现有和新库中添加新的定义的内容类型

更新时间:2023-12-01 08:43:04

跨度>

创建 并在内容中心发布了一种内容类型(您可以在下面的线程中查看指南),然后可以通过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 =