Versions Compared

Key

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

After installation of the NuGet package, it's time to setup the connection to you Digizuite DAM instance. You have 2 options to add the settings. Eather through code in the startup class or in a json settings file.

...

Create a new file with the name digizuitesettings.json and add place it along with the appsettings.json. Add the minimun settings like below.

...

DAMIntegrationConfiguration parameters

Name

Type

Required

Default

Description

DatabaseName

string

Yes


The databaseName is the name of the database that you are running your Optimizely application in. We have experienced in some applications that it is not enougt to only add the name of the database, but it should have the hole connection string. You can get the connection string like this: 

_configuration.GetConnectionString("EPiServerDB")

Connection

DigizuiteConfiguration

Yes


This object contains the connection parameters to the Digizuite DAM instance.

MediaManager

MediaManagerElement

Yes


The Url parameter has to be set. This is used for embedding the MediaManager into Optimizely.

MainSearchFolderId

int

Yes


This is the channel folder in Digizuite. Request the id from your Digizuite consultant.

RoleMappings

List<RoleMappingElement>

No


Code Block
languagec#
new RoleMappingElement()
{
	DigizuiteUser = new DigizuiteUser()
    {
    	Name = "Episerver Editor",
        Password = 36b2a0e1d5d2a4bd45975951366ea26b",
        IsSystemUser = true
    },
    EpiserverRoles = new List<string>() 
	{
		"DigizuiteEditor" 
	}                 
},
new RoleMappingElement()
{
	DigizuiteUser = new DigizuiteUser()
    {
    	Name = "Episerver User",
        Password = "292ad587521cc6c4c26e1c32991c2afd"                    
    },
    EpiserverRoles = new List<string>() 
	{
		"DigizuiteUser"
	}
}    


see DFO 4.0.0 - 14 Role mapping

FallbackIconMappings

List<IconMappingElement>

No



VideoPlaybackType

VideoPlaybackType

No

VideoPlaybackType.Streaming

The connector comes with 3 different option for video playback. You can read about the it at DFO 4.0.0 - 13 Video playback

VideoCdnBaseUrl

string

No



DigizuiteWebhookElement

DigizuiteWebhookElement

No


Listening for Digizuite asset update events. When someone make a change to an asset in Digizuite DAM and event is raised which your Optimizely instanc gets and all cached data about the asset will be cleared.

FullSearchBatchSize

int

no

200


ValidVideoExtensions

List<string>

no

"mp4", "m4v", "ogv", "webm"


DisableNotifications

bool

no

false


DefaultLanguageId

int

no

3


DefaultLanguageName

string

no

en


ForceDefaultLanguage

bool

no

false


Cache

CacheElement

no

TimeOut = "10:00"


...

Name

Type

Required

Default

Description

SiteUrl

string

Yes


This is the url that Digizuite use to send the notification to. We will append the routing to the controller to the url. [siteUrl]/episerver/digizuite/DigizuiteWebhook/Update

Guid

string

Yes


This is the unique identifier for the endpoint in Digizuite DAM. Just generate a new guid. 

Subscriptions

List<int>

No

new List<int> { 1 }

A list of changeTypes. Possible values are: AssetChanged = 1, MetafieldChanged = 2, TreeValueChanged = 4, ComboValueChanged = 8

DeleteBlob

bool

No

False

By default this is false. Enable this if each instance of a loadbalanced enviroment has its own local blob storage.

Child element: CacheElement

...