内容类型-问题 [英] Content Type - issue

查看:86
本文介绍了内容类型-问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了内容类型内容类型中心中的内容类型名称,例如"C1","C2".和"C3";并发布后,我便可以看到我所有的网站集.后来我删除了所有这三种内容类型, 用相同名称(C1,C2,C3和C4)的不同列重新创建并发布.

现在,当我默认创建一个新的网站集时,它引用的是旧的内容类型文件,而不是引用的新的conenttype文件.

每次,我都要从新的网站集中删除旧的内容类型,然后重新发布C1,C2和C3内容类型.然后执行内容类型Jobsechduler以反映新的内容类型文件....

请建议我如何解决此问题...以及为什么在删除并重新创建内容类型后仍然引用旧列.

解决方案

BrettoAbraham,

在删除内容类型之前,您是否未发布内容类型?

发布的内容类型存储在内容类型中心之外的TermStore数据库中.如果您不先取消发布就从内容类型中心删除内容类型 它将变成孤立发布的内容类型.创建新的网站集后,孤立的内容类型将显示为订阅的内容类型,因为它是从TermStore数据库中检索的.

由于在内容类型中心中删除了内容类型,因此无法从以下位置取消发布内容类型中心.

作为一种解决方法,我们需要运行以下powershell脚本以取消发布孤立的已发布内容类型. /span>

添加PSSnapIn Microsoft.SharePoint.PowerShell
如果(


args.Count -ne 3) { 写入主机" UnpublishContentTypes.ps1< web url> <内容类型中心网址> < unpublish>" 出口 }


webUrl =


Hi,

I have created the content type  in content type hub... content type name like "C1", "C2" and "C3" and published, upon published I can able to see all my sitecollections. Later I deleted those all three contenttypes and recreated with different columns in the same name (C1, C2 , C3 and C4) and published. 

Now, when ever I create a new sitecollection by default it referring the old content type fileds, it is not referring the new conenttype fileds.

each time I am deleting that old contenttype from the new sitecollection, and republishing the C1,C2 and C3 content type. then executing the contenttype jobsechduler to reflect the new contenttype fileds....

Please suggest me how to resolve this issue... and why still it is referring the old columns after deleted and recreated the contenttype also.

解决方案

Hi BrettoAbraham,

Have you unpublished the content type before deleting it?

The content types are published is stored in the TermStore database outside of the content type hub. If you delete the content type from the content type hub without first unpublishing it, it will become to orphan published content type. When a new site collection is created, the orphaned content type will appear as subscribed content type because it is being retrieved from the TermStore database.

As the content type is deleted in the content type hub, there is no way to unpublish it from the content type hub.

As a workaround, we need to run the following powershell script to unpublish orphan published content type.

Add-PSSnapIn Microsoft.SharePoint.PowerShell
if (


args.Count -ne 3) { Write-Host "UnpublishContentTypes.ps1 <web url> <content type hub url> <unpublish>" exit }


webUrl =


这篇关于内容类型-问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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