开发者

How to add existing data types to SharePoint feature schema.xml

I have made a custom SharePoint feature based on default Document Library. Basically I made a copy of the DocumentLibrary folder and modi开发者_开发百科fied it and all the required xml files to make it unique library type. Now I need to add link to its supported content types but it seems not be working. I managed to do this via the web GUI but I need to add it straight to the CAML definition.

As far as I know the Link type should be added as ContentTypeRef tag to the schema.xml. I have the following markup inside the MetaData tag in the beginning of the file:

<ContentTypes>
  <ContentTypeRef ID="0x0101">
    <Folder TargetName="Forms/Document" />
  </ContentTypeRef>
  <ContentTypeRef ID="0x0120" />
  <ContentTypeRef ID="0x0105" />
  <ContentTypeRef ID="0x01010A" />
</ContentTypes>

Is there any other setup required to allow the link type? The above code doesn't enable links. The ID values of ContentTypeRef are from ctypewss.xml file.

Any help would be greatly appreciated.


It seems your content type refs are wrong follow the link from this url that might be help for you Content Type IDs

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜