Note |
---|
The Embedded Unified Crop Connector requires MM 5.6 |
Integration Digizuite DAM crop featue Integrate the crop feature into almost any other application using the Unified Crop Connector. It will give you a head start on development efforts and reduce both implementation time and risk.
...
You can read about the crop functionnaity here MM5MM 6.6 0 Asset editing (crop and trim)
...
The user behind the accesskey, must have the following roles and rights.
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
The Unified Crop Connector also posts a message. The 3 important message types are:
CropInitialized
- So you know it is the Digizuite Iframe.CropDone
- When the crop is done.Cancel
- When a user clicks on the 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’.
...