内容类型列标题更改 [英] Content Type Column Title change
问题描述
大家好,
我在重命名方面遇到问题。
.Title 。
I通过将其重命名为"姓氏",可以看到MSFT成功地将其用于联系内容类型。不影响项目内容类型。标题
但我无法这样做。
我尝试更改 DisplayName 在SchemaXml中,但在更新字段后它也会更改
.Title 属性。
以下是联系人的输出
内容类型:
任何提示?
亲切的问候,Dusan Tomic
< p style ="margin-bottom:5.0pt">
你需要设置
ContentType
继承 = " FALSE "
因此您的内容类型字段可以自定义显示标题。
演示:
<?xml version =" 1.0" encoding =" utf-8"?>
< Elements xmlns =" http://schemas.microsoft.com/sharepoint/">
<! - Parent ContentType:Item(0x01) - >
将ContentType的ID = QUOT; 0x0100854CED7EB4D3493AB571D78EBEFBD82F"名称= QUOT; CustomItemDiffTitle"
组= QUOT;自定义内容类型"描述= [我的内容类型"
继承= QUOT假QUOT;
版本= QUOT; 0">
将FieldRefs>
将FieldRef ID = QUOT; {fa564e0f-0c70-4ab9-b863-0177e6ddd247}"名称= QUOT;名称"密封=" FALSE" DisplayName的= QUOT; MyTitle" />
将/ FieldRefs>
将/ ContentType的>
将/元素>
< img alt =""src ="https://social.m sdn.microsoft.com/Forums/getfile/1308027">
最好的问候,
利跨度>
Hi Guys,
I have problem with renaming .Title property from "Title" to anything else in my Custom Content Type in Content Type Hub without renaming the Item (parent of my CT) .Title as well.
I see that MSFT successfully did it for Contact Content Type by renaming it to "Last Name" without affecting Item Content Type .Title but i am unable to do so.
I tried changing DisplayName in SchemaXml but it also changes the .Title property after I update the field.
Here is the what outputs for Contact
Content Type:
Any Hints?
Kind regards, Dusan Tomic
Hi,
You need set ContentType Inherits="FALSE" so your fields in content type could custom display title.
Demo:
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: Item (0x01) --> <ContentType ID="0x0100854CED7EB4D3493AB571D78EBEFBD82F" Name="CustomItemDiffTitle" Group="Custom Content Types" Description="My Content Type" Inherits="FALSE" Version="0"> <FieldRefs> <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Sealed="FALSE" DisplayName="MyTitle"/> </FieldRefs> </ContentType> </Elements>
Best Regards,
Lee
这篇关于内容类型列标题更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!