Can the “Picture Library Slideshow” web part have a relative link to picture library?
-
10-12-2019 - |
Question
I have a site template with a Picture library slideshow web part connected to a picture library called "Dashboard Pictures".
I saved this site as a template and created a new site only to find that it isn't linked with the current "Dashboard Pictures" picture library. The web part looks like this:
If I edit the page, then edit the slideshow web part and click on 'OK' the library links again.
The problem is we don't want users to have to do the extra clicks.
Is there a way to make the link to the picture library in the slideshow relative to the site?
Solution
Unfortunately the answer is no, there is no possibility to specify the relative Url for Picture Library. Picture Library Slideshow web part exposes the following properties to query pictures from Picture Library:
- LibraryGuid - unique identifier (GUID) of the picture library
- ViewGuid - GUID of the list view in the picture library.
These web part properties could be specified during site provisioning, for example using feature activation.