DFS 10.0.0 - Keeping the Silo Updated
- Martin Ulisse
- Morten Boisen
In DAM For Sitecore 9.4, we have shifted technology from pulling updates to pushingĀ updates. In the previous versions of the module, we had a hook that ran every minute.Ā The purpose of this background process was to listen for changes in the DAM and then subsequently make sure that the changes were synchronized into the silo. This feature has been deprecated.
Now we have changed this to an event-driven architecture. The Digizuite DAM will now send out notifications to Sitecore whenever an asset or metadata of an asset has changed.Ā Sitecore will then automaticallyĀ update the content.
In order for Digizuite DAM to notifyĀ your Sitecore instance, you have to registerĀ what we call an "integration endpoint".Ā
Important
It is important that the Digizuite DAM server can access your Sitecore instance through HTTPS otherwise it won't be able to send out notifications.
Create an integration endpoint
Go to the DAM for Sitecore Administration dashboard (Control PanelĀ ā AdministrationĀ ā Administration DAM for Sitecore). In the right side ofĀ the main page, you should see a "Validate Digizuite Integration" message, which should say something like this "No endpoint has been set up for this Sitecore instance. The asset silo won't be updated automatically. See documentation how to set up a new Digizuite integration endpoint". If it instead has a green checkmark, the integration already has been set up and you can skip this setup guide.
- Click the menu "Digizuite Integration".
- You should see an empty list, indicating that no endpoint has been configured.
- Click on the icon , which brings up this dialog.
- Enter the URL to your Sitecore instance (without the "/sitecore"). This URL must be accessible from the Digizuite DAM server.
- Click "Create endpoint".
- You should now see the newly created endpoint in the list.Ā
Your Sitecore instance will now be ready to receive updates from the Digizuite DAM. To validate this, go to the DAM Explorer and locate any asset. Open the Digizuite DAM Center and search for your chosen asset. Make a change to the asset's metadata - e.g. change the title. Once you save your changes, a notification should be sent to your Sitecore instance and thereby update the asset. Reload the DAM Explorer and validate that the title of the asset indeed has been updated.
Enable the old way of keeping the silo up to date
If for some reason your Sitecore instance is not reachable from the Digiziute DAM server, then you have to enable the "old way of keeping the silo up to date". Where the Sitecore instance asks Digizuite for changes every 1 minute. To enable this feature do the following:
Open Website\App_Config\Include\damforsitecore\DFS.Connect.config and locate the <hooks> section. You should see something like this:
<hooks> <!--hook type="DFS.Connect.Hooks.DetectDamChangesLoader, DFS.Connect"> <param name="agent" type="DFS.Connect.DetectDamChangesAgent, DFS.Connect"> <param name="repository" ref="DFS.Connect/assetSiloRepository" /> </param> <param name="interval">00:01:00</param> </hook--> <hook type="DFS.Connect.Hooks.ResolvePushEventsLoader, DFS.Connect"> <param name="agent" type="DFS.Client.Services.PushNotifications.ResolvePushEventsAgent, DFS.Client.Services"></param> <param name="interval">00:00:05</param> </hook> </hooks>
- Enable the the hook of type "DFS.Connect.Hooks.DetectDamChangesLoader" and disable the hook of type "DFS.Connect.Hooks.ResolvePushEventsLoader".
- That it. Recycle you site and do a full sync of the silo. If for some reason you dont see the silo automatically updates, then go to this page for help.Ā DFS 10.0.0 - The auto synchronization between Digizuite and Sitecore