Thursday 2 May 2013

Changing the Title Column to something more relevant in a content type

Today i was tasked with creating a custom content type for a calibration system we are putting together.  I didnt want the default Title column so i decided to rename it to something more relevant.  I needed to rename the column to Company Name.  After some research it seems this is possible. Simply reference the column (s) in your custom content type



<FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Link Company Name" Sealed="TRUE"/>

<FieldRef Name="LinkTitleNoMenu" ID="{bc91a437-52e7-49e1-8c4e-4698904b2b6d}" DisplayName="Link No Menu Company Name" Sealed="TRUE"/>

<FieldRef Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Company Name" Sealed="TRUE"/>


One thing to remember is to set the inherit property of the custom content type to false


<ContentType ID="0x0100a6669fd796344f1c8e02cbc9a42e7b37"
               Name="Calibration Equipment Contact"
               Group="Custom Content Types"
               Description="Contact type used for the calibration system"
               Inherits="FALSE"
               Version="0">

No comments:

Post a Comment