사용자 정의 SharePoint 2010 DocessageTet ContentType.
-
09-12-2019 - |
문제
Type DoScapeet의 사용자 정의 ContentType에서 작업하고 있습니다.나는 AllLowed ContentTypes를 설정하고 싶지만이 일은 작동하지 않습니다. DefEult 문서 만 표시합니다.나는 여러 번 블로그를 읽었지 만, 나는 솔루션을 찾을 수 없다.
<?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>
. 해결책
콘텐츠 유형의 상속 속성을 FALSE로 설정하십시오. Inherit 속성이 TRUE (TRUE로 WIICH, MURPHY LAW의 WIICH)로 설정된 경우 신고를 자동으로 무시하게하는 버그가 있습니다.나는 이것이 당신의 사례가되어야한다고 생각합니다 (나는 어떤 cu / sp가 오늘날로 버그를 고정시키는 것이 아니라고 생각하지 않는다).
INHORITS="FALSE"속성을 보완하고 8 명의 어린이 콘텐츠 형식이 업데이트 할 8 명의 어린이 콘텐츠 유형이 없으면 촛불을 켜려면 ...
다른 팁
DoC 세트 컨텐츠 유형을 만들고 상속="true"를 설정하고 모든 사용자 정의 XmlDocuments를 유지할 수있는 작업 주위가 있습니다.기본적으로 아이디어는 CTYPE 정의를 배포하고 elements.xml 파일을 가져오고 XmlDocuments를 사이트의 CType Def에 복사하는 기능 (상속="true"때문에 변경 사항을 무시했습니다.짐마자내 블로그에 예제 코드가 있습니다.
http://morefunthanapokeintheye.blogspot.com/2012 / 10 / How-to-success-publish-custom.html