SharePoint 默认视图忽略自定义标题 DisplayName
我创建了一个继承自联系人的自定义内容类型(即
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="Last Name" Sealed="TRUE" />
<FieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle" DisplayName="Last Name" Sealed="TRUE"/>
<FieldRef ID="{BC91A437-52E7-49E1-8C4E-4698904B2B6D}" Name="LinkTitleNoMenu" DisplayName="Last Name" Sealed="TRUE" />
</FieldRefs>
它在编辑中正确重命名,查看和添加页面,但在默认视图和 DataGrid 视图中它始终显示标题。 我希望它到处都重命名。 我想做的事情可能吗?如果可能的话,如何做? 任何帮助是极大的赞赏。
I've created a custom content type that inherits from a contact (i.e. <ContentType ID="0x010600...") and I'm trying to rename the "Title" field using the following:
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="Last Name" Sealed="TRUE" />
<FieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle" DisplayName="Last Name" Sealed="TRUE"/>
<FieldRef ID="{BC91A437-52E7-49E1-8C4E-4698904B2B6D}" Name="LinkTitleNoMenu" DisplayName="Last Name" Sealed="TRUE" />
</FieldRefs>
It renames correctly in the Edit, View, and Add pages, but in the default view and DataGrid view it always says title. I want it renamed everywhere. Is what I'm trying to do possible and if so how? Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了在视图中重命名字段,您必须使用 ListTemplate 定义列表,并在此处重复重命名字段(以及烦人的重复内容类型中的所有字段,这不是标准的)
In order for the field to be renamed in view you have to define your list using a ListTemplate and repeat your renaming of the fields in here (as well as the annoying repeating all of the fields from your content type which isn't standard)