Sitecore Content Hubの設定
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
!注Content Hubを設定するには、スーパーユーザーであるか、ユーザーグループポリシーを通じて必要な権限が付与されている必要があります。
!注始める前に
- ブラウザでポップアップが有効になっているか確認してください。
Sitecore Content Hub Digital Apps Connectorをインストールした後、OAuthクライアントを設定する必要があります。
スーパーユーザーとして、アセットやプロジェクトの検索設定もカスタマイズできます。
OAuthクライアントの設定
OAuthクライアントを追加するには:
-
メニューバーで 「管理 」をクリックします。
-
管理ページで、OAuthクライアントをクリックしてください。
-
クリック OAuth クライアント。
-
開くOAuthクライアント ダイアログに、以下を入力してください:
フィールド名
価値
名称
CI HUB Connector Live
クライアントID
CE60B3027E8998BA6368CAB8738C0BB1F226E60A
クライアントの秘密
a15612273e8ef46e4d0d3478281e96CF403F0203
リダイレクトURLの
https://live.ci-hub.com/api/v1/auth/login/sitecore
または
https://ci-hub.azurewebsites.net/api/v1/auth/login/sitecore
クライアントタイプ
Authorization Code
-
「保存」をクリックします。
CORSの設定
Sitecore Content Hub Digital Apps Connectorでアセット選択を表示するには、Content Hubのアセット検索ページをホストするためのベースURLのエントリを追加する必要があります。
クロスオリジンリソース共有(CORS)を設定するには:
- メニューバーで 「管理」をクリックします。
- 管理ページで設定をクリックします。
- 設定ページの検索ボックスでPortalConfigurationを入力してください。
- PortalConfigurationを展開し、CORS Configurationを選択します。
- CORSConfigurationのページのURL欄で https://live.ci-hub.com を入力し、「追加」をクリックします。CORSの設定が有効になりました。
- 「保存」をクリックします。
アセットやプロジェクトの検索設定をカスタマイズ
Sitecore Content Hubのデジタルアプリコネクタ検索設定を、以下の種類をサポートするように設定できます。
!注Sitecore Content Hubデジタルアプリコネクターは、クエリビルダーベースの高度なフィルターをサポートしていません。
分類学関係の側面
分類関係の側面は、例えば以下の分類関係をフィルタリングできます。
{ "name": "M.AssetType", "type": "definition" },
ここで:
- name は関連するタクソノミー関係のエンティティ定義(例: M.AssetType または M.Final.LifeCycle.Status)
- タイプは definition
プロパティベースの側面
プロパティベースのファセットでは、例えばプロパティフィールドでフィルタリングできます。
{ "name": "Title", "definition": "M.Asset", "type": "property" }
ここで:
- name はプロパティフィールド名( TitleField、 DateTimeField、 BooleanField、または StringFieldなど)です。
- definition はエンティティの定義です(例えば、 M.Asset)
- type は property
以下の例は両方のファセットタイプを示しています。
"facets": { "name": "Title", "definition": "M.Asset", "type": "property" }, { "name": "StringField", "definition": "M.Asset", "type": "property" }, { "name": "BooleanField", "definition": "M.Asset", "type": "property" }, { "name": "DateTimeField", "definition": "M.Asset", "type": "property" }, { "name": "M.AssetType", "type": "definition" }, { "name": "M.Final.LifeCycle.Status", "type": "definition" }
以下の設定はSitecore Content Hubで即座に設定できます。
-
CIHubAssetSearchConfig - Sitecore Content Hubデジタルアプリコネクタで使用されるアセット検索フィルターを決定すること。
アセット設定JSON
{ "name": "CIHubAssetSearchConfig", "pageSize": 20, "checksum": "checksum", "filters": { "definition": "M.Asset", "type": "definition" }, { "definition": "M.Final.LifeCycle.Status", "type": "relation", "field": "FinalLifeCycleStatusToAsset", "operator": "Equals", "valueExpression": "String(\"StatusValue\") == \"Approved\"" }, { "definition": "M.Content.Repository", "type": "relation", "field": "ContentRepositoryToAsset", "operator": "Equals", "valueExpression": "String(\"ClassificationName\") == \"Standard\"" } , "facets": { "name": "M.AssetType", "type": "definition" }, { "name": "M.Final.LifeCycle.Status", "type": "definition" }, { "name": "M.Brand", "type": "definition" }, { "name": "M.PCM.ProductCategory", "type": "definition" }, { "name": "M.PCM.ProductFamily", "type": "definition" }, { "name": "M.Localization", "type": "definition" }, { "name": "M.AssetMedia", "type": "definition" }, { "name": "M.DRM.Restricted", "type": "definition" } , "propertiesToLoad": "FileName", "Description", "Title", "ReasonForRejection", "FileSize", "FileProperties", "ApprovedBy", "ApprovalDate", "Digest", "Renditions" , "renditionsToLoad": "thumbnail", "storyboard", "preview", "downloadOriginal", "downloadAlternative", "pdf", "bigthumbnail" , "permissionsToLoad": "Create", "Update", "AddVersion", "Submit", "Delete" , "loadRenditionsLabels": true }
-
CIHubWIPSearchConfig - Sitecore Content Hub Digital Apps Connectorで使用されるWIPアセット検索フィルターを決定する
WIPアセット設定JSON
{ "name": "CIHubWIPSearchConfig", "pageSize": 20, "checksum": "checksum", "filters": { "definition": "M.Asset", "type": "definition" }, { "operator": "OR", "filters": { "definition": "M.Final.LifeCycle.Status", "type": "relation", "field": "FinalLifeCycleStatusToAsset", "operator": "Equals", "valueExpression": "String(\"StatusValue\") == \"Created\"" }, { "definition": "M.Final.LifeCycle.Status", "type": "relation", "field": "FinalLifeCycleStatusToAsset", "operator": "Equals", "valueExpression": "String(\"StatusValue\") == \"Rejected\"" }, { "definition": "M.Final.LifeCycle.Status", "type": "relation", "field": "FinalLifeCycleStatusToAsset", "operator": "Equals", "valueExpression": "String(\"StatusValue\") == \"UnderReview\"" }
}, { "definition": "M.Content.Repository", "type": "relation", "field": "ContentRepositoryToAsset", "operator": "Equals", "valueExpression": "String(\"ClassificationName\") == \"Standard\"" }, { "definition": "M.Asset", "type": "dynamic", "field": "CreatedBy", "operator": "Equals", "value": "currentuser" } , "facets": { "name": "M.AssetType", "type": "definition" }, { "name": "M.Final.LifeCycle.Status", "type": "definition" }, { "name": "M.Brand", "type": "definition" }, { "name": "M.PCM.ProductCategory", "type": "definition" }, { "name": "M.PCM.ProductFamily", "type": "definition" }, { "name": "M.Localization", "type": "definition" }, { "name": "M.AssetMedia", "type": "definition" }, { "name": "M.DRM.Restricted", "type": "definition" } , "propertiesToLoad": "FileName", "Description", "ReasonForRejection", "Title", "FileSize", "FileProperties", "ApprovedBy", "ApprovalDate", "Digest", "Renditions" , "renditionsToLoad": "thumbnail", "storyboard", "preview", "downloadOriginal", "downloadAlternative", "pdf", "bigthumbnail" , "relationsToLoad": "FinalLifeCycleStatusToAsset" , "permissionsToLoad": "Create", "Update", "AddVersion", "Delete", "Submit" , "loadRenditionsLabels": true }
-
CIHubProjectsSearchConfig - Sitecore Content Hub Digital Apps Connectorで使用されるプロジェクトの検索フィルターを決定すること。
プロジェクト構成JSON
{ "name": "CIHubProjectsSearchConfig", "pageSize": 20, "checksum": "checksum", "filters": { "definition": "M.Asset", "type": "definition" }, { "operator": "OR", "filters": { "definition": "M.Content.Repository", "type": "relation", "field": "ContentRepositoryToAsset", "operator": "Equals", "valueExpression": "String(\"ClassificationName\") == \"Standard\"" }, { "definition": "M.Content.Repository", "type": "relation", "field": "ContentRepositoryToAsset", "operator": "Equals", "valueExpression": "String(\"ClassificationName\") == \"Project\"" }
} , "facets": { "name": "M.AssetType", "type": "definition" }, { "name": "M.Final.LifeCycle.Status", "type": "definition" }, { "name": "M.Brand", "type": "definition" }, { "name": "M.PCM.ProductCategory", "type": "definition" }, { "name": "M.PCM.ProductFamily", "type": "definition" }, { "name": "M.Localization", "type": "definition" }, { "name": "M.AssetMedia", "type": "definition" }, { "name": "M.DRM.Restricted", "type": "definition" } , "propertiesToLoad": "FileName", "Description", "ReasonForRejection", "Title", "FileSize", "FileProperties", "ApprovedBy", "ApprovalDate", "Digest", "Renditions" , "renditionsToLoad": "thumbnail", "storyboard", "preview", "downloadOriginal", "downloadAlternative", "pdf", "bigthumbnail" , "relationsToLoad": "FinalLifeCycleStatusToAsset" , "permissionsToLoad": "Create", "Update", "AddVersion", "Delete", "Submit" , "loadRenditionsLabels": true }
これらの設定をカスタマイズするには:
- メニューバーで 「管理 」をクリックします。
- 管理ページで設定をクリックします。
- 設定ページでPortalConfigurationをクリックし、カスタマイズしたい設定をクリックします。
- 変更を加えて保存をクリックします。
!重要この設定を有効にするには、プラグインウィンドウで > LIVE (NEW) をクリックして有効化する必要があります。