Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the display name of the Title column in a ContentType, wise or not? [closed]

Tags:

sharepoint

I once read, that it is not wise to change the display name of the Title column, when creating a new ContentType in SharePoint. It is however possible (i.e. the columns static name is still "Title" but the display name is "Description").

So my question is, what are the possible complications? Why shouln't I change it, when I create a new ContentType that needs a "Description" column but no "Title" column?

like image 243
Turrau Avatar asked Jul 07 '10 14:07

Turrau


People also ask

How do I change which column is Title column in SharePoint list?

Gear Icon > List Settings. Scroll down to Columns section, click on Title column. Under the Column Name, type in the new name for a column. Click OK at the bottom.

What is a Title column?

Generally, the Title column is a main column that is used to open, edit and work with the items in a SharePoint list. Another important usage of the Title column is that this column is used in the View settings in 3 ways: Display the Title in text format, text (linked to item), and text (linked to item with edit menu).


1 Answers

I agree that you need to do this with the CAML XML. I just wanted to post the actual details of how to do it so that the next person with this question doesn't have to continue searching like I did. Thanks to Lambros's Blog for the answer.

You actually need to update three fields -- the title field and the two calculated fields based on it and you need to use the predefined SharePoint ID values. See below or the link above:

You need to add to the FieldRefs by adding the following:

<FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Renamed" Sealed="TRUE"/>
<FieldRef Name="LinkTitleNoMenu" ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" DisplayName="Renamed" Sealed="TRUE"/>
<FieldRef Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Renamed" Sealed="TRUE"/>

You need to add to the Fields by adding the following:

<Field Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Renamed" Sealed="TRUE" Type="Calculated"/>
<Field Name="LinkTitleNoMenu" ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" DisplayName="Renamed" Sealed="TRUE" Type="Calculated"/>
<Field Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Renamed" Sealed="TRUE" Type="Text"/>

That should do it. Thanks again to Lambros.

like image 113
AndyZ Avatar answered Oct 22 '22 17:10

AndyZ