logo
logo

Asset configuration JSON

This is the JSON you must enter in the JSON text field when you add the Assets configuration to Sitecore Content Hub.

The JSON can be customized as follows:

  • The facets node lets you customize the filters displayed for searching and filtering assets in the Sitecore Content Hub Digital Apps Connector.
  • The filters node lets you pre-filter DAM assets displayed in the navigation results in the Sitecore Content Hub Digital Apps Connector.
{
  "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",
    "ShortDescription",
    "Title",
    "ReasonForRejection",
    "FileSize",
    "FileProperties",
    "ApprovedBy",
    "ApprovalDate",
    "Digest",
    "Renditions"
  ],
  "renditionsToLoad": [
    "thumbnail",
    "storyboard",
    "preview",
    "downloadOriginal",
    "downloadAlternative",
    "pdf",
    "bigthumbnail"
  ],
  "permissionsToLoad": [
    "Create",
    "Update",
    "AddVersion",
    "Submit",
    "Delete"
  ]
}

Can we improve this article ? Provide feedback