I added a link column in my picture library and populated with links. Then added SP OOTB picture library slide show web part. Both pictures and it's description are showing. I need the link to be on the image so when user click on image it goes to whatever I put in the link field.
|
This is not OOTB functionality of the slide show webpart. To accomplish this behaviour you can extend the webpart to add the functionality or you can set the link with jQuery/SPServices. Regards, Anita |
|||||||
|
|
Picture Library SlideShow web part class is marked a sealed, so there is no way to extend it. But it could be customized on the client side, the solution description is presented below. Load custom Picture Library fieldsThe following fields are loaded via SPQuery from Picture Library in Picture Library SlideShow web part:
So, in order to specify custom field for picture link we need to load it also. Loading of additional fields could happen during Slideshow initialization on the client side. Specify custom field value for picture linkAfter custom fields are loaded, we need only to modify custom picture link values. The code below demonstrates how to override
For implementation details please follow my blog post. |
||||
|
|
