現在のSitecore SharePoint Integration Frameworkの実装では、SharePointドキュメント ライブラリ アイテムの、Blobデータを含むカスタムSharePointフィールドの同期が実施されません。
本チュートリアルでは、SitecoreのソリューションごとにSharePoint統合アイテムが1つしかない場合に、上記の機能を実装する方法について説明します。
本チュートリアルでは、PDFメディア タイプ向けのカスタムSharePointフィールドの同期を設定する方法について説明します。他にメディア タイプの場合でも同じ方法で設定することができます。
前提条件:
シナリオ:
/sitecore/templates/Sharepoint/Media/<Integration Name>/unversioned/Pdfこれは、デフォルトのバージョン管理なしのPDFテンプレートと、
/sitecore/templates/System/Media/Unversioned/PdfSharePoint統合を作成する際に生成したテンプレートを継承します。
/sitecore/templates/Sharepoint/Item Level Integration/Sharepoint Integration Items/<Integration Name>
/sitecore/templates/Sharepoint/Media/<Integration Name>/versioned/Pdfこれは、デフォルトのバージョン管理ありのPDFテンプレートと、
/sitecore/templates/System/Media/Versioned/PdfSharePoint統合を作成する際に生成したテンプレートを継承します。
/sitecore/templates/Sharepoint/Item Level Integration/Sharepoint Integration Items/<Integration Name>
App_Config\Include\SharePoint.Media.<Integration Name>.config下記のコンテンツを追加します。
<configuration>
<sitecore>
<mediaLibrary>
<mediaTypes>
<mediaType extensions="pdf">
<sharedTemplate>Sharepoint/Media/<Integration Name>/unversioned/Pdf</sharedTemplate>
<versionedTemplate>Sharepoint/Media/<Integration Name>/versioned/Pdf</versionedTemplate>
</mediaType>
</mediaTypes>
</mediaLibrary>
</sitecore>
</configuration>