...
Integration Digizuite DAM crop featue into almost any other application using the Unified DAM Crop Connector. It will give you a head start on development efforts and reduce both implementation time and risk.
...
Features in MM | Roles | Rights |
---|---|---|
Crop (share it via email) | Asset_Can_Crop | |
Crop + Replace original asset with crop + Restore to an older version of an asset | Asset_Can_Crop Asset_Can_Replace | Write access to the asset Write access to the Uploads folder OR the Content folder (The option to restore requires "write access" to the Uploads folder) |
Crop + Make new child asset | Asset_Can_Crop Asset_Can_Revise | Write access to the asset Write access to the Uploads folder OR the Content folder |
Listening to events
Besides from asset message, then the Unified DAM The Unified Crop Connector also posts a message when trying to change the URL from menu (wanting to change MM URL) and then when the Unified DAM Connector is initialized properly so that the host application knows. The 3 important message types are:
DigizuiteInitPostMessage
CropInitialized
- So you know it is the Digizuite Iframe.DigizuiteChangeUrlPostMessage
CropDone
- If the user tries to change URLDigizuiteAssetPostMessage
When the crop is done.Cancel
- When a user clicks on asset. When multi-select you receive morethe cancel button.
As mentioned above, the iframe will post messages to its parent / host application. Listening to these events are what makes the magic. It can be done in different ways and most modern frameworks have ways for handling it. But since all are JavaScript frameworks then the most basic way in any kind of application would be to use ‘addEventListener’.
...