カスタムSharePoint 2010 DocumentSet ContentType.
-
09-12-2019 - |
質問
Type DocumentsetのカスタムContentTypeに取り組んでいます。AllLowed ContentTypesを設定したいが、これは機能していないため、デフォルト文書を表示しています。私はいくつかのブログを読みましたが、私は自分の解決策を見つけることができません。
<?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>
. 解決
コンテンツタイプのinherits属性をfalseに設定してみてください。 inherit属性がTRUEに設定されている場合は、宣言を無視する機能フレームワークには、宣言を無視する(デフォルトではwiich)。私はこれがあなたの訴訟であるべきだと思う(私は今日のCU / SPがバグを修正したとは思わない)
inherits="false"属性...を補正し、8人の子コンテンツタイプを更新するために8人の子供コンテンツタイプを持っていない場合は、SharePoint Dev Deityにキャンドルを点灯させてください...
他のヒント
私はあなたのドキュメントセットのコンテンツタイプを作成することができる仕事をしています、set inherits="true"を継承し、それでもあなたのカスタムxmldocumentsをすべて守ります。基本的には、CTYPE定義を展開し、element.xmlファイルを引き出す機能の機能受信機を使用し、サイト上のCTYPE DEFSにコピーします(これは、inherits="true"のため、変更を無視しています)。)。ブログにいくつかの例を持っています:
http://morefunthanapokeintheeye.blogspot.com/2012/10 /どのように正常に発行されたund-custom.html