How to manage DAM asset URLs after a library import from another environment
Applies to
HCL Digital Experience v9.5 and higher
Introduction
After importing a library from another environment, some items contain an absolute URL in the ibmcontentwcm:digitalAsset attribute, while others contain a relative path. This variation occurs based on how the Digital Asset Management (DAM) repository handles asset references. This article explains how to configure DAM asset URL rendering parameters to ensure consistent asset pathing.
Instructions
To configure DAM asset URL parameters, perform the following steps:
-
Enable either the
dam.host.relativeordam.host.overwriteparameter based on your environment requirements:- To remove the hostname and port from returned DAM references, set
dam.host.relativetotrue. For more information, refer to Using WCM with DAM staging. - To specify a custom host for a DAM asset, configure
dam.host.overwrite. For more information, refer to Setting a unique custom URL for a media asset.
- To remove the hostname and port from returned DAM references, set
-
Restart the server to apply the configuration changes.
Note
The system overwrites the absolute URL as soon as the server restarts. You can safely ignore the absolute URLs in
ibmcontentwcm:digitalAssetonce either parameter is set. For more information on staging configurations, refer to Staging DAM to rendering environments.