I'm building a custom content type. I've set a bunch of site columns I add to the content type. The content type is used in a custom list definition within a ContentTypeRef
node.
I'm also willing to remove the OOB title column, but I can't find the correct declaration.
Here is my CT definition :
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x01006ffb64509c2341d2bff13b98859f792b"
Name="MyCT"
Description="My content type"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"
Name="Title"
Hidden="TRUE"
Required="FALSE"
Sealed="TRUE"
DisplayName="_hidden"
ShowInDisplayForm="FALSE"
ShowInEditForm="FALSE"
ShowInFileDlg="FALSE"
ShowInListSettings="FALSE"
ShowInNewForm="FALSE" />
<FieldRef ID="{82ea62ec-a683-4685-827e-c9775c42bc15}"
Name="Other field"
Required="TRUE"/>
</FieldRefs>
</ContentType>
</Elements>
I've also tried by using <RemoveFieldRef/>
but the Title column is still visible on newform.aspx, and mandatory.
In my custom list definition, I bound the content type using :
<ContentTypes>
<ContentTypeRef ID="0x01006ffb64509c2341d2bff13b98859f792b">
<Folder TargetName="MyCT" />
</ContentTypeRef>
</ContentTypes>
I'd appreciate a bit of help.