In this article we can explore how to use a Content Search Web Part to create a Slide Show of images.
Step 1: Create Picture Library
Create a document library of type picture library, change the name to Slides and add some pictures into it.
Step 2: Create Page
Add a new page and choose the Edit Page option.
Enter the page name as SlidePage.
Step 3: Insert Content Search Web Part
Choose the Insert tab & Web Part ribbon item; Choose the Content Rollup category and then the Content Search web part.
Add the web part to the page.
Step 4: Configure Web Part
Choose the Edit Web Part option & click the Change query button.
In the appearing dialog box choose the following options.
You are specifying:
- Pictures to be displayed
- Scoping to a URL
- Specifying our picture library URL
From the right pane you can verify the results.
(It takes 15 minutes for the search crawl to refresh new contents)
Save the dialog.
From the web part properties make the following changes in Display Templates section.
Click OK to save the web part. Save changes to the page.
Step 5: Test the web part
Refresh the slide page & you should be seeing the following display.
The slides will start changing after few seconds.
There can be a 15 minute delay for the Search Crawl to update the new picture documents. Please ensure you refresh the page after 15 minutes of upload.
In this article we have explored how to use Content Search Web Part for doing a Slide Show.