DFS 11.1 - 3 Metadata

When uploading a media item to Digizuite™ DAM. Metadata from the item can also be transferred to the asset in Digizuite™ DAM. By default, the fields: Title and Description are being copied to the asset, but it is customizable which fields to copy from a Sitecore media item to a Digizuite™ DAM asset. Through customization you can configure it to meet the requirements of the client.

Open \App_Config\Include\damforsitecore\DFS.Settings.config and find the section called <metadataMapping>. By default, is look like this:

<MetadataMapping> 
	<Map name="Title" fieldId="{3F4B20E9-36E6-4D45-A423-C86567373F82}" metafieldGuid="5EB3EEFC-A043-410F-89B0-29ED3EF37078" /> 
	<Map name="Description" fieldId="{BA8341A1-FF30-47B8-AE6A-F4947E4113F0}" metafieldGuid="C8BB4AF3-1598-4EA4-8D7A-98D54EEAD977" /> 
</MetadataMapping>

The attribute name is only information to make the mapping readable when editing the section; it is in no way used by the code. This is a good practice, so that anyone who looks at this configuration, knows which field is what.

The fieldId, is the id of the field in Sitecore. The metafieldGuid, is the guid of the metafield in Digizuite™ DAM. It is only the simple types like strings, that can be transferred to Digizuite™ DAM.

You also have the option to transfer itemId, path, name or displayname of the item to the asset. Then you add itemProperty instead of fieldId. Like this:

<MetadataMapping> 
	<Map name="Title" fieldId="{3F4B20E9-36E6-4D45-A423-C86567373F82}" metafieldGuid="5EB3EEFC-A043-410F-89B0-29ED3EF37078" /> 
	<Map name="Description" fieldId="{BA8341A1-FF30-47B8-AE6A-F4947E4113F0}" metafieldGuid="C8BB4AF3-1598-4EA4-8D7A-98D54EEAD977" /> 
	<Map name="SitecoreItemId" itemProperty="id" metafieldGuid="099626E0-906B-4818-A238-CC6F5034BEE9" /> 
</MetadataMapping>

Supported item properties:

  • id
  • path
  • name
  • displayname