TaxonomyField_0在不同的站点页面库中具有不同的ID [英] TaxonomyField_0 has different ids in different sites pages libraries

查看:112
本文介绍了TaxonomyField_0在不同的站点页面库中具有不同的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

作为内容类型的一部分,不同网站中有一个taxo字段(taxo1)。

There is one taxo field(taxo1) present in different sites as part of a content type.

现在taxo1的id在所有站点中都是相同的,因为它是在其他站点中使用的内容类型中的字段。但令人惊讶的是,文本字段的id,即taxo1_0(taxo1的注释字段)在不同的网站中是不同的,理想情况下,它在不同的
网站中也应该相同。

Now the id of taxo1 is same in all sites as that is a field in a content type used in other sites. But surprisingly the id of the text field i.e. taxo1_0 (the note field of taxo1) is different in different sites, ideally it should also be the same in different sites.

可以有人请告诉我为什么可能这样吗?

Can anyone please tell why possibly it can be like this ?

推荐答案

Hi,

您是如何创建站点管理元数据列的?通过编程或直接单击SharePoint站点?

How did you create your site managed metadata column? By programming or directly clicking on SharePoint site?

为了测试您的问题,我通过直接单击SharePoint站点创建了站点托管元数据列,并且将其添加到同一网站集下不同网站的列表中。

To test your problem, I created a site managed metadata column by directly clicking on SharePoint site, and added it to lists from different sites under the same site collections.

不同列表的隐藏注释字段具有相同的ID。因此我无法重现您的问题。

The hidden note field of different lists has the same id. Therefore I could not reproduce your issue.

但是,我发现 一个
文章
其中显示了如何使用编程来添加站点托管元数据列。

However, I found an article which shows how to use programming to add the site managed metadata column.

根据这篇文章,你可以确保隐藏的id注释字段在以编程方式添加后将是静态的。

According to this article, you can make sure the id of hidden note field will be static after adding it programmatically.

最好的问候,

Sarah Yang

Sarah Yang


这篇关于TaxonomyField_0在不同的站点页面库中具有不同的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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