Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to create content type based on Element content type, which has only one field - Title. I'd like to modify this field's display name. How can I find the GUID of title field from base content type, so I can reference it in FieldRefs element and modify display name?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

If you are using Visual Studio 2010, you can use the Server Explorer to inspect the fields of the content type.

Server Explorer

You can also do the same thing (actually, even more) using a stand-alone application named SharePoint Manager

share|improve this answer
1  
I find your answer most helpful, since I don't have to leave visual studio :P –  jjczopek Sep 26 '11 at 15:54

If you're looking for a standard Title field from an OOTB content type, there is a simple way to fetch it: just use SPBuiltInFieldId.Title field:

PS> [Microsoft.SharePoint.SPBuiltInFieldId]::Title

Guid

fa564e0f-0c70-4ab9-b863-0177e6ddd247

It could be done from code or from PS, as illustrated above.

share|improve this answer

All base fields are defined in a feature :

14\Templates\Features\fields\elements.xml

Just search for "Title" and you will find the Title column and its guid.

A side note :

This file and 14\Templates\Features\ctypes\elements.xml for content types, are gold mines to understand and discover some undocumented ways of working with fields and/or content types

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.