0

Documentsetタイプのカスタムコンテンツタイプに取り組んでいます。許可されたコンテンツタイプを設定したいのですが、これは機能せず、デフォルトのドキュメントのみが表示されます。いくつかのブログを読みましたが、解決策が見つかりません。

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Parent ContentType: Document Set (0x0120D520) -->
  <ContentType ID="0x0120D520008d2ff418027e4c31b54d155b98596748"
               Overwrite="True"
               Name="Custom Dossier"
               Group="Custom group"
               Description="Custom dossier"
               Inherits="True"
               Version="0">
    <FieldRefs>
            <FieldRef ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}" Name="Dossier_Nummer" DisplayName="Dossiernummer" Required="True"  />
    </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes">
        <act:AllowedContentTypes xmlns:act="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes" LastModified="05/31/2012 08:46:56">
          <AllowedContentType id="0x0101" />
          <AllowedContentType id="0x0101000490d50c50624b6ca21c637ef39cd89b" />
        </act:AllowedContentTypes>
      </XmlDocument>
    </XmlDocuments>
  </ContentType>
</Elements>
4

2 に答える 2

0

ドキュメント セット テンプレートに必要なすべてのノードを追加しようとしましたか? すばらしい例がここにあります: http://code.msdn.microsoft.com/office/Create-Custom-Document-Set-318393ce/sourcecode?fileId=57420&pathId=1173424883

于 2014-04-27T04:43:41.347 に答える
0

CT をドキュメント ライブラリに割り当てるには、 ContentType バインド要素を使用できます。

于 2012-06-01T06:19:01.770 に答える