...
To disable the plugin in the Optimizely Commerce Asset list, set the PreventCommerceEditorIntegration setting to true.
Code Block | ||
---|---|---|
| ||
"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.
Code Block | ||
---|---|---|
| ||
"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.
Code Block | ||
---|---|---|
| ||
"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.
...