none
Adding custom button in picture library

    Question

  • Hi,

    How to add a custom button in Picture library.

    I want to show the Image and the custom button near to the image.

    On click of the button, i want to invoke a page, which has a visual webpart.

    How to achieve this?

    Thank you

    Wednesday, December 22, 2010 7:02 AM

Answers

  • Hi,

     

    If I understand correctly, you wish to add a “button” near the image to redirect to a custom page with a visual webpart instead of OOB display form.

    In my mind, you could achieve this with client script(e.g. : JS or JQuery), you need to loop each thumbnail picture table and inject a html button or hyperlink with query string parameters(contains item id).

    OOB thumbnail view used ClickThumbnail(itemID) method, you could retrieve item ID there.

    Hope this can help.

      

    Best Regards,

    Aaron

    • Marked as answer by Venkatzeus Thursday, December 23, 2010 9:28 AM
    Thursday, December 23, 2010 8:56 AM

All replies

  • Hi,

     

    If I understand correctly, you wish to add a “button” near the image to redirect to a custom page with a visual webpart instead of OOB display form.

    In my mind, you could achieve this with client script(e.g. : JS or JQuery), you need to loop each thumbnail picture table and inject a html button or hyperlink with query string parameters(contains item id).

    OOB thumbnail view used ClickThumbnail(itemID) method, you could retrieve item ID there.

    Hope this can help.

      

    Best Regards,

    Aaron

    • Marked as answer by Venkatzeus Thursday, December 23, 2010 9:28 AM
    Thursday, December 23, 2010 8:56 AM
  • HI,

    Thank you very much for the reply.

    Thursday, December 23, 2010 9:29 AM