Content Type Hub
在SharePoint里面,每个site collection 都可以建立自己的Content Type。但是现实情况中,常常需要一些site collection使用同样的Content Type。比如一个公司有多个部门,每个部门有一个Site Collection,然而所有部门都想用同样的Content Type来申请硬件,那该怎么做到呢?
在Manage Metadata Service Application里就提供了这个功能。要使用这个功能,我们需要先建一个Content Type Hub的Site Collection。这个Site Collection可以是任意的Template。建好之后,去Site Settings->Site Collection Settings->Site CollectionFeature 里面,开启Content Type Syndication feature。
然后在Central Administration里面,找到Manage Metadata Service Application,点击Ribbon上的Properties, 这Content Type Hub里面输入刚才建好的Site Collection:
然后再选中Application的Proxy,点击Properties:(注意这里是Proxy,不是Application本身)
选中下面的Check box:
去Content Type Hub的site collection,建立一个新的Request的Content Type:
在Manage Publishing里面,选Publish,再点OK。
然后这些步骤完成之后,Content Type并没有立刻发布到其他的Site Collection。
因为SharePoint后台实际上是用timer job来做同步的,手动run这两个timer job:
Timer Job运行完毕之后,到其他的sitecollection,查看Content Type,可以看见从Content Type Hub Site Collection同步过来的Content Type。