Replace existing image in gallery

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

Comments

  • 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:12
    To: eLink Recipient
    Subject: 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

     

  • There are lots of products that they are doing the auto sync and hence manually deleting them would be a very tedious process.

    Niranjan

    On Nov 6, 2017, at 1:55 AM, eLink Entry: Discuss Digital Asset Management for SAP Solutions <damforsap@elinkkc.opentext.com> wrote:

    eLink : RE Replace existing image in gallery
    RE 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:12
    To: eLink Recipient
    Subject: 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

     


    [To post a comment, use the normal reply function]
    Topic: Replace existing image in gallery
    Forum: Discuss Digital Asset Management for SAP Solutions
    Content Server: Knowledge Center CS16
  • And yeah they would like to delete whatever is already there in gallery.

    Niranjan

    On Nov 6, 2017, at 1:55 AM, eLink Entry: Discuss Digital Asset Management for SAP Solutions <damforsap@elinkkc.opentext.com> wrote:

    eLink : RE Replace existing image in gallery
    RE 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:12
    To: eLink Recipient
    Subject: 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

     


    [To post a comment, use the normal reply function]
    Topic: Replace existing image in gallery
    Forum: Discuss Digital Asset Management for SAP Solutions
    Content 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 

  • Quoted Andreas Siglreithmayr on 11/08/2017 10:18 AM:

    Be aware that the "Automatic Update to latest Version" mechanism will no longer work and you have to care about it in the hook.

     

    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.