Is it possible to create a contenttype without the fielddefinition xml file?
Hi, i want to know if it is possible to create a ContentType WITHOUT a FieldDefinition XML File!? Is this possible? And if yes, how could this look like?Best regards, Yavuz B. My Sharepoint Blog http://www.sharepointkb.net
July 1st, 2010 11:49am

All you need is a feature.xml that references the ContentType Schema xml examples below <?xml version="1.0"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ContentType ID="0x01008FEB3BD204E9EB4AA511AD87224C7FCD" Name="My.ContentType" Group="My" Version="3" xmlns="http://schemas.microsoft.com/sharepoint/"> <Folder TargetName="_cts/DFA.ContentType" /> <FieldRefs> <FieldRef ID="{c042a256-787d-4a6f-8a8a-cf6ab767f12d}" Name="ContentType" /> <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" Hidden="TRUE" ShowInNewForm="TRUE" ShowInEditForm="TRUE" ReadOnly="FALSE" /> <FieldRef ID="{227b73b5-e5a1-44c7-8933-16964dae5cf8}" Name="ProjectRole" Required="TRUE" /> <FieldRef ID="{60f4b37b-c662-4b69-98f4-309c0b684142}" Name="TeamMember" Required="TRUE" /> </FieldRefs> </ContentType> </Elements> <?xml version="1.0"?> <Feature Id="{7b8d9d7c-bf5c-461d-a650-fea0751e2a2f}" Title="My.ContentType" Description="Content Type used for My Project Team list" Version="1.0.0.0" Scope="Site" xmlns="http://schemas.microsoft.com/sharepoint/"> <ElementManifests> <ElementManifest Location="schema.xml" /> </ElementManifests> </Feature> -Ivan Ivan Sanders My LinkedIn Profile, My Blog, @iasanders.
Free Windows Admin Tool Kit Click here and download it now
July 1st, 2010 12:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics