You are not Logged in
Would you like to Login or Register

Today is: Friday, 21 November, 2008
Check this months hot topics

Change the Field Name for a Content Type

When I created a new Content Type in WSS 3.0 I could not find a way to change the name of the Title Field with out changing the base Item Type.

When you add a Field to a Content Type, you are actually creating FieldLinks, so you need to change the name of the Link not the Field.

The snippet below shows how to change the Title Display Name to Company

SPFieldLink fieldLink = contentType.FieldLinks["Title"];
fieldLink.DisplayName = "Company";
contentType.Update();
kick it on DotNetKicks.com del.icio.us digg Mister Wong YahooMyWeb Reddit Furl Spurl blogmarks
Greg Duffield Skype
Author : Greg Duffield
Published : Monday, 23 July, 2007

Greg has too many years experience in developement from VB for DOS all the way through to Windows Workflow and LINQ while covering pretty much every technology in between. A complete MS evangelist he is now Director of the only MS Gold Partner IT services company in Norfolk. Wehere they are producing Web 2 Applications for various sectors, and are currently entering the Haulage industry with their latest product.

Add Comment

Enter your comment below and it will be submitted for moderation.

Your Name

Add Tag

Please enter tags for this article, seperated by semi-colon ;

View Tag's by : # articles | # views