Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To disable the plugin in the Optimizely Commerce Asset list, set the PreventCommerceEditorIntegration setting to true.

```json
Code Block
languagejson
"ContentPlatform": {

  ...

  "PreventCommerceEditorIntegration": true

}

```

Logging

The plugin has a number of logging information that can be used for information and debugging the integration. Update appsettings.json as the following.

```json
Code Block
languagejson
"Logging": {

    "LogLevel": {

      "Fotoware.ContentPlatform.Plugins.Optimizely": "Information"

    }

  },

```

Multiple site configuration

You can configure the plugin to run with Optimizely multi-site scenario by specifying the site ID for each site in the Sites collection in appsettings.json.

```json
Code Block
languagejson
"ContentPlatform": {

  "BaseCdnUrl": "https://optimizely.preview-picturepark.com",

  "Sites": [

    {

      "SiteId": "7e9335f8-2f16-44b0-8870-8f2d4bc0160c",

      "RootFolderId": 102,

      "EnableOnAllMedia": true,

      "DisableDefaultMediaSelector": false,

      "DefaultTinyMceImageWidth": 600,

      "UseImageCdnUrlInTinyMce": false,

      "MediaTypes": [

        {

          "Name": "Image",

          "FileExtensions": ".jpg,.jpeg,.jpe,.gif,.bmp,.png,.gif",

          "PreferredDownloadWidth": 1200,

          "DownloadContentSelectionName": "Original",

          "PreviewContentSelectionName": "Preview"

        },

        {

          "Name": "Video",

          "FileExtensions": ".mov,.mp4",

          "DownloadContentSelectionName": "VideoSmall",

          "PreviewContentSelectionName": "Preview"

        },

        {

          "Name": "Pdf",

          "FileExtensions": ".pdf",

          "DownloadContentSelectionName": "Original",

          "PreviewContentSelectionName": "Preview"

        }

      ]

    }

  ]

}

```

SiteId - The ID of the site, which you can find in Admin > Manage Websites.

...