SharePoint 2013 Image Carousel (Rotating Banner) using Content Search Web Part

SharePoint 2013 brought an excellent web part to get content from the search index, called “Content search web part”. Using the content search web part, We can build a simple image rotator or the content slider in few steps.

Content Search Web part is available only on SharePoint 2013 enterprise edition!

Step 1 –  Create a Picture Library and upload images:
Go to your SharePoint site, create a new picture library.

SharePoint 2013 Image Carousel using Content Search Web Part

Give it a Name, Say “Slides”

2 create picture library

Upload required banner images to the library

Rotating Banner using Content Search Web Part

Step 2: Trigger Incremental Crawl:
Trigger an incremental crawl or wait for the incremental crawl schedule to complete, So that the picture library we created added to the search index.

Step 3: Add Content Search Web Part to the page
Navigate to the page where you would like to add a content slider, Click on Site settings gear >> Edit page >> On Insert tab, Click on Web part >> Under the content Rollup, select “Content Search” and then click on “Add” button.

SharePoint 2013 how to add content search web part

Now, the web part should look like the below image. Click on “Edit Web Part” from the web part menu,

content search web part sharepoint 2013

Click on “Change Query” button from the web part properties pane.

sharepoint 2013 slider

Select a query as: Pictures (system) and Restrict by app as : Specify a URL. In URL field, enter the URL of your picture library and Click on OK.

sharepoint 2013 slider web part

Now, in Edit Properties, Set the Number of items to show as per your requirement, and expand the Display templates section. Set the Control template as “Slideshow” and Item template as “Large picture”.

sharepoint 2013 content search web part display templates

That’s all! Done, This is what we get in the page!

sharepoint 2013 carousel

Well, what we’ve done above is just a slideshow. On clicking banner images, they take us to the individual image from the banner. However, We may have to link banners to different URLs. Say, on clicking the above “New markets” banner, you may want to send users to http://your-sites/departments/new-markets/ isn’t it? So what this step brings, in addition, is: When the user clicks on the banner, where it should take them, Lets head on to the next step:

SharePoint 2013 generates managed properties for site columns. If you add a column directly to a list, it will not generate a managed property automatically!

Step 1: Add a new Site column and Include it in the library
We need a column to hold the target URL (when the banner is clicked!), So let’s create a new site column and add it to the Slides picture library. The reason we create a site column, rather than adding a column to the list directly is: We need a Managed property! Fortunately, in SharePoint 2013, all site columns will be automatically created as managed properties!

Navigate to “site action >> Site settings >> Site columns >> Create new site column “TargetURL”
 content search web part sharepoint 2013 tutorial
Add site column to the Library:
Go to list settings >> Add from existing site column >> and choose the site column “TargetURL”.
2 add from existing site column

Once done, update TargetURL value for all banner images. sharepoint 2013 content slider
Once done, initiate either incremental/full crawl – This will create a new crawled property as well as managed property for the custom site column we’ve added to the picture library.
4 start full crawl

Verify the managed property:

Go to : Site settings >> search schema >> Managed properties. Make sure, you get the Managed property listed.

sharepoint 2013 content search webpart slideshow

Now, configure the managed property in the content search web part properties. Go to Edit page, Modify web part, And set the “Link URL” value to the managed property created from our custom column (TargetURL).

sharepoint 2013 content search web part picture url

That’s all! Now the banner images will be pointing to the URLs specified in TargetURL column!

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

32 thoughts on “SharePoint 2013 Image Carousel (Rotating Banner) using Content Search Web Part

  • July 19, 2018 at 4:20 PM

    I want to have a simple Workflow to manage customer complaints: it’s simple form that must undergo a Workflow
    can u help me pls ???

  • February 5, 2018 at 7:10 PM

    When I click on the image I’m also directed to “Site Pages”. Everything else works fine but this. Any suggestions would be appreciated.

  • December 11, 2017 at 10:49 AM

    Hello I got exactly the same issue…How did you solve it?

  • November 23, 2017 at 8:29 PM

    Please ignore my previous request for links. Its working now. My bad.

  • November 23, 2017 at 8:11 PM

    Links not working, on clicking it takes me to site pages library. Gone through all steps, no hiccups. Any suggestions?

  • October 17, 2017 at 8:44 AM

    Very very helpful ! 🙂
    can you tell me how to display more than one image at startup?

  • October 17, 2017 at 9:16 AM

    Sorry, all of my pictures don’t appear, I only get a grey background with a “?”

  • August 9, 2017 at 7:34 PM

    Can you modify the interval time between slides? I’d like the slide images to change once a week.

  • February 27, 2017 at 7:19 AM


    Done everything as per the steps to start my banner. Search query is also resulting in some images as per the URL I am specifying. Re-indexing has also been done. Still images are not appearing in the webpart.

  • February 13, 2017 at 8:04 PM

    Great Article It works perfectly fine for me

  • February 7, 2017 at 10:55 AM

    I am not sure why I am not able to see anything after setting up the query. I have re-indexed the library. While changing query i see pictures names and path under query result but noting showing up.

    Do i need to enable any site feature before getting it configured?

    • February 8, 2017 at 8:37 AM

      Run Search crawl (Indexing) once! Because, content search gets the data from Search index!

  • December 20, 2016 at 5:18 AM

    If you are not getting the TargetURL under the Link URL, try typing “TargetURLOWSTEXT” in the Link URL manually. It works for me this way. Hope this helps.

  • September 20, 2016 at 10:18 PM

    I have been working on this solution for about two months based on this blog and created the identical scenario. The managed property is still not populating under the “Link URL” when I edit the Content Search Web Part. All aspects o this appear to be set correctly, including reindexing the picture library, full crawl, incremental crawl, ensuring that managed properties have been mapped.

    I can’t not seem to figure out what is wrong. It is an amazing tool and I would love to use this. Any help would be so very much appreciated.

  • March 17, 2016 at 6:10 AM

    Hai first of all thank you for this nice post,here How can we increase the picture size??

    • May 4, 2016 at 2:53 PM

      I would also like to know the answer to this, because currently the images are to small especially the width.

    • August 22, 2016 at 5:24 AM

      I am having the same problem. Its not a banner as the Content Search Webpart is left aligned and I can not get it to center and the image is not scretched across the page even tho the image is 1500px x 300px. Anyone figured it out yet? it would really help me

  • February 12, 2016 at 9:39 PM

    navigation not working its opening picture library

  • February 12, 2016 at 9:35 PM

    i need couple of changes.
    first when click on image it should open url in new window
    2nd thing navigation not moving back and forth its opening the picture library,

  • February 12, 2016 at 9:34 PM

    in this i need some changes.
    when click on image it open the new url in new window.
    other thing when you click navigation button below right its going to picture library.
    i want this should go to next and previous image.

  • October 29, 2015 at 9:18 AM

    Sometimes the Managed property will not get made so just make it and map the crawled property, also try removing gaps if you have any in the name i.e Target link will be Targetlink… Hope that helps.

  • October 23, 2015 at 5:01 PM

    Works like a charm, thanks for the blog…

  • October 9, 2015 at 8:42 PM

    Hi , Nice Article, simple and great functionality from out of box feature.

    I am not getting TargetURL(TargetURLOWSTEXT) under the “Link” drop down in webpart though I see the TargetURL(TargetURLOWSTEXT) field in crawling /Manager property,
    any idea
    Thank you in advance

  • October 8, 2015 at 11:08 PM

    I waited for 1 week but still I am not seeing Target URL under Link URL in the Webpart configuration though the site was crawled ,I can See targetURLOWSTEXT under Managed Property,
    Thank you in advance and any help would be greatly appreciate.

  • August 12, 2015 at 1:28 PM

    Great Post.. Thank you!!!

  • July 8, 2015 at 1:31 PM

    ¿How can I make the number of pictures to display dynamic? I want to display all the available pictures…

    By the way a very big THANK YOU!!

  • April 16, 2015 at 5:52 PM

    Great guide and it works perfectly!
    Like L Cook mentioned, is there anyway to remove the gray bar that displays the name/title of the picture?
    Also, the webpart is shrinking our pictures down. Manually setting the height and width of the webpart leave the pictures the same, smaller, size and just makes scroll bars with blank space. Any thoughts on this?

    • August 25, 2015 at 5:25 PM

      Hi Alex,
      Did you get this to work?

  • March 26, 2015 at 6:04 PM

    This is great!

    although it shows a shaded area at the bottom of the picture…how do you get rid of that?

  • January 6, 2015 at 5:53 AM

    what is the frequqncy fo crawl in sharepoint online E3, will it display immidetly!


    • January 6, 2015 at 6:42 AM

      As per Microsoft KB:, Its targeted between 15 Minutes to 1 Hour! In Heavy usage environments, It can take up to 6 Hours!

  • July 19, 2014 at 12:00 AM

    Just created this week before and took one step further. Customized display control templates and item template. Looks fab. so happy with it 🙂


Leave a Reply