0

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?

3 Answers 3

1

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

1
  • 1
    I find your answer most helpful, since I don't have to leave visual studio :P
    – jjczopek
    Sep 26, 2011 at 15:54
2

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.

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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