A function that will be called when an asset is selected. The function will receive an array of selected assets.
A function that will be called when an error occurs. The function will receive an error message and the error object.
A function that will be called when the content browser is closed.
The public name of the DAM to display in the login screen.
The name of the plugin to display in the login screen.
The id of the container element to attach the content browser. If not provided, the content browser will open in a popup.
The default base URL to pre-fill in the content browser.
The text to display on the insert button.
An array of available OrangeDAM asset types to filter the assets.
The available doc types will be configured in OL Platform. If not provided, all doc types will be available.
To get the available asset of a doc type, you can add a wildcard (*) at the end of the doc type name.
E.g. Images*, Videos*, Audio*, Others*,...
Note: The asset types are case-sensitive.
An array of supported OrangeDAM subtypes to allow inserting representative image. If not provided, all subtypes will be supported.
E.g. Standard Image, Standard Video, Standard Audio, Other,...
Note: The subtypes are case-sensitive.
An object to configure the display of the asset information. The object has the following properties:
An array of extra fields to get from the assets. The fields are in the format of "coreField.FieldName" or "document.FieldName".
A boolean to enable the last location mode. When enabled, the content browser open the last selected folder on loaded.
A boolean to enable the persist mode. When enabled, the content browser will not close after selecting an asset.
A boolean to enable tracking. When enabled, the user will be able to input tracking parameters to be added to the asset URL.
A boolean to show collections in the content browser.
The session id to use for the content browser. Try logging out and in whenever you change the sesssion.