Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Posts Tagged ‘content search web part’

Slide Show using Content Search Web Part

Posted by Paul on March 5, 2014

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.

image

Step 2: Create Page

Add a new page and choose  the Edit Page option.

image

Enter the page name as SlidePage.

image

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.

image

Add the web part to the page.

Step 4: Configure Web Part

Choose the Edit Web Part option & click the Change query button.

image

In the appearing dialog box choose the following options.

image

You are specifying:

  1. Pictures to be displayed
  2. Scoping to a URL
  3. 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.

image

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.

image

The slides will start changing after few seconds.

Note

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.

Summary

In this article we have explored how to use Content Search Web Part for doing a Slide Show.

Advertisements

Posted in SharePoint, SharePoint 2013 | Tagged: , , , , , , | Leave a Comment »

Content Search Web Part

Posted by Paul on March 5, 2014

Content Search Web Part is a new web part introduced in SharePoint 2013.

image

You can see the web part here.

image

Please note that Content Query Web Part is different & was pre-existing in SharePoint 2010 too.

What are the advantages?

Following are the advantages:

  1. Search Query Association
  2. Display Templates (HTML, JavaScript)
  3. Scope can be Site Collection, Site or Library level
  4. Styling Options

Please note that Search Crawl has to be happened to display fresh results using this web part.

References

http://msdn.microsoft.com/en-us/library/jj163789.aspx

Summary

In this post we explored an overview of Content Search Web Part.  In upcoming posts we can see how to use it.

Posted in SharePoint, SharePoint 2013 | Tagged: , | Leave a Comment »