I think the answer is, that we just add new media items, and do not look what other media items exist.
Also, how should we know which old media items to delete? But the old media items can be removed easily
manually, right? Are there too many of them, or why does the customer see a problem?
Michael
From: eLink Entry: Discuss Digital Asset Management for SAP Solutions [mailto:damforsap@elinkkc.opentext.com] Sent: Montag, 6. November 2017 05:12To: eLink RecipientSubject: Replace existing image in gallery
Replace existing image in gallery
Posted by Kosaraju, Niranjan On 11/05/2017 11:12 PM
Hi,Customer has Hybris configured with local media. They have now added the damlink solution and are able to attach assets. But the renditions are added as another media item in gallery. Is there a way to replace existing media items with damlink rendition automatically?They use synchronization process to attach renditions.Thanks,Niranjan
[To post a comment, use the normal reply function]
Forum:
Discuss Digital Asset Management for SAP Solutions
Content Server:
Knowledge Center CS16
eLink : RE Replace existing image in galleryRE Replace existing image in gallery Posted by Uhlenberg, Michael On 11/06/2017 02:54 AM I think the answer is, that we just add new media items, and do not look what other media items exist.Also, how should we know which old media items to delete? But the old media items can be removed easilymanually, right? Are there too many of them, or why does the customer see a problem?Michael From: eLink Entry: Discuss Digital Asset Management for SAP Solutions [mailto:damforsap@elinkkc.opentext.com]Sent: Montag, 6. November 2017 05:12To: eLink RecipientSubject: Replace existing image in gallery Replace existing image in gallery Posted by Kosaraju, Niranjan On 11/05/2017 11:12 PM Hi,Customer has Hybris configured with local media. They have now added the damlink solution and are able to attach assets. But the renditions are added as another media item in gallery. Is there a way to replace existing media items with damlink rendition automatically?They use synchronization process to attach renditions.Thanks,Niranjan [To post a comment, use the normal reply function]Forum: Discuss Digital Asset Management for SAP SolutionsContent Server: Knowledge Center CS16 [To post a comment, use the normal reply function]Topic: Replace existing image in galleryForum: Discuss Digital Asset Management for SAP SolutionsContent Server: Knowledge Center CS16
Hello Niranjan,
there is no automatic way but you can implement such an behaviour with one of the hooks.Have a look on AssignmentHandler.postProcessMedia hook of the Public API (see Customization and Programming Guide and Javadoc of the Public API):"Use if you need to make any post processing after the OpenTextMedia items are created and assigned to a product."
I suggest that you move the MediaItems of the automatically created MediaContainer to the existing one and afterwards delete the automatically created MediaContainer.
Be aware that the "Automatic Update to latest Version" mechanism will no longer work and you have to care about it in the hook.
Bye,Andreas
Forget what I said. That should work. We have a sepcial handling there and I thought it is accected when adding the Media items to a different MediaContainer.