locked
Renamed Title field in list definition not working (SP 2013) RRS feed

  • Question

  • I’m creating a list definition in Visual Studio 2012 for SharePoint 2013 that uses the Title column with a different display name.  I have followed the standard advice (given for SharePoint 2010) and changed the name for all three of the standard title fields.

          <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="New Name" StaticName="Title"   />

          <Field ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle" DisplayName="New Name" StaticName="LinkTitle" >

          <Field ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" Name="LinkTitleNoMenu" DisplayName="New Name" StaticName="LinkTitleNoMenu" >

    In addition, it seems that for 2013 there is also a fourth title field:

          <Field ID="{5f190d91-3dbc-4489-9878-3c092caf35b6}" Name="LinkTitle2" DisplayName="Route Name" StaticName="LinkTitle2" >

    I have changed all four of them to my new name, but the list is still created with the column called “Title”.

    So I created the list by hand in the browser, renamed the Title column, saved the list as a template and created a new list from the template.  The new list was created with the field called “Title” and not the name I had provided.  I then downloaded the .stp file from the list template gallery, renamed the extension to .cab, and extracted the manifest.  The manifest clearly shows DisplayName="New Name" for all 4 of these fields.  But SharePoint did not use the DisplayName attribute.

    Is this a bug in SharePoint 2013?

    Anyone else run into this one?

    Thank you.

    Wednesday, October 23, 2013 12:21 PM

Answers

  • Hi Steven,

    In list template definition Schema.xml file, I customize/add the 4 title fields with custom "DisplayName" and deploy it, the Title fields with custom name are displayed successfully, you can check again.

    http://www.alottolearn.net/2012/02/14/rename-title-in-a-sharepoint-list/

        <ContentTypes>
          <ContentType ID="0x01001b86c205622344fc9dfb6450ed211e2c" Name="ListFieldsContentType">
            <FieldRefs>
              <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" />
              <FieldRef ID="{7f721776-8bf8-4dbf-a71f-17429ea539db}" Name="single1" />
    
              <FieldRef ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" Name="LinkTitleNoMenu"/>
              <FieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle"/>        
              <FieldRef ID="{5f190d91-3dbc-4489-9878-3c092caf35b6}" Name="LinkTitle2" />      
            </FieldRefs>
          </ContentType>
          <ContentTypeRef ID="0x01">
            <Folder TargetName="Item" />
          </ContentTypeRef>
          <ContentTypeRef ID="0x0120" />
        </ContentTypes>
        <Fields>
          <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="Title1" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
          <Field Name="single1" ID="{7f721776-8bf8-4dbf-a71f-17429ea539db}" DisplayName="single1" Type="Text" />
    
          <Field ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" ReadOnly="TRUE" Type="Computed" Name="LinkTitleNoMenu" DisplayName="Title2" Dir="" DisplayNameSrcField="Title" AuthoringInfo="(linked to item)" EnableLookup="TRUE" ListItemMenuAllowed="Prohibited" LinkToItemAllowed="Prohibited" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitleNoMenu" FromBaseType="TRUE"/>
          <Field ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" ReadOnly="TRUE" Type="Computed" Name="LinkTitle" DisplayName="Title3" DisplayNameSrcField="Title" ClassInfo="Menu" AuthoringInfo="(linked to item with edit menu)" ListItemMenuAllowed="Required" LinkToItemAllowed="Prohibited" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitle" FromBaseType="TRUE"/>
         <Field ID="{5f190d91-3dbc-4489-9878-3c092caf35b6}" Hidden="TRUE" ReadOnly="TRUE" Type="Computed" Name="LinkTitle2" DisplayName="Title4" DisplayNameSrcField="Title" ClassInfo="Menu" AuthoringInfo="(linked to item with edit menu) (old)" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitle2" FromBaseType="TRUE"/>
        </Fields

    Thanks


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

    • Marked as answer by Steven-Hughes Tuesday, October 29, 2013 7:03 PM
    Sunday, October 27, 2013 12:36 PM

All replies

  • Hi Steven,

    In list template definition Schema.xml file, I customize/add the 4 title fields with custom "DisplayName" and deploy it, the Title fields with custom name are displayed successfully, you can check again.

    http://www.alottolearn.net/2012/02/14/rename-title-in-a-sharepoint-list/

        <ContentTypes>
          <ContentType ID="0x01001b86c205622344fc9dfb6450ed211e2c" Name="ListFieldsContentType">
            <FieldRefs>
              <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" />
              <FieldRef ID="{7f721776-8bf8-4dbf-a71f-17429ea539db}" Name="single1" />
    
              <FieldRef ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" Name="LinkTitleNoMenu"/>
              <FieldRef ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" Name="LinkTitle"/>        
              <FieldRef ID="{5f190d91-3dbc-4489-9878-3c092caf35b6}" Name="LinkTitle2" />      
            </FieldRefs>
          </ContentType>
          <ContentTypeRef ID="0x01">
            <Folder TargetName="Item" />
          </ContentTypeRef>
          <ContentTypeRef ID="0x0120" />
        </ContentTypes>
        <Fields>
          <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="Title1" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
          <Field Name="single1" ID="{7f721776-8bf8-4dbf-a71f-17429ea539db}" DisplayName="single1" Type="Text" />
    
          <Field ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" ReadOnly="TRUE" Type="Computed" Name="LinkTitleNoMenu" DisplayName="Title2" Dir="" DisplayNameSrcField="Title" AuthoringInfo="(linked to item)" EnableLookup="TRUE" ListItemMenuAllowed="Prohibited" LinkToItemAllowed="Prohibited" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitleNoMenu" FromBaseType="TRUE"/>
          <Field ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" ReadOnly="TRUE" Type="Computed" Name="LinkTitle" DisplayName="Title3" DisplayNameSrcField="Title" ClassInfo="Menu" AuthoringInfo="(linked to item with edit menu)" ListItemMenuAllowed="Required" LinkToItemAllowed="Prohibited" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitle" FromBaseType="TRUE"/>
         <Field ID="{5f190d91-3dbc-4489-9878-3c092caf35b6}" Hidden="TRUE" ReadOnly="TRUE" Type="Computed" Name="LinkTitle2" DisplayName="Title4" DisplayNameSrcField="Title" ClassInfo="Menu" AuthoringInfo="(linked to item with edit menu) (old)" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="LinkTitle2" FromBaseType="TRUE"/>
        </Fields

    Thanks


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

    • Marked as answer by Steven-Hughes Tuesday, October 29, 2013 7:03 PM
    Sunday, October 27, 2013 12:36 PM
  • It appears that my SharePoint 2013 stand-alone server may be corrupt somehow.  I copied my list definition feature to a different farm and it worked correctly (i.e. title field was renamed).

    Thank you, Daniel, for confirming this does still work in 2013.

    Tuesday, October 29, 2013 7:03 PM