Your SlideShare is downloading. ×
  • Like
SharePoint 2013 Content search web part - Get it all in one place and style it!
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

SharePoint 2013 Content search web part - Get it all in one place and style it!


This session was presented first in St. Louis. It's hard to get it by just reading the slides as much of it is through the presentation in person. Hope it helps

This session was presented first in St. Louis. It's hard to get it by just reading the slides as much of it is through the presentation in person. Hope it helps

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Content Search Web Part – Get it all in one place and style it! Benjamin NiaulinPresented at: SharePoint Saturday St- SharePoint GeekLouis
  • 2. Description Weve always been limited to show items and documents from our current site or Site Collection. In SharePoint 2013, a new Web Part will make it easier to grab everything and style it the way you want. In this session, you will learn what this Web Part can do, the various scenarios where it will help as well as how to change the display of the results. Dont stay constrained to your SharePoint site - Search it!@bniaulin
  • 3. Who is this guy talking? Benjamin Niaulin Speaker, Trainer, Consultant, SCRUM Master Blog Website Email TWITTER!: @bniaulin @bniaulin
  • 4.  http://spsaturday. 4 | SharePoint Saturday St. Louis 2013
  • 5.  http://spsaturday. 5 | SharePoint Saturday St. Louis 2013
  • 6. Thanks to Our Sponsors! 6 | SharePoint Saturday St. Louis 2013
  • 7. Agenda Introduction – Problems and Previous Solutions Basics of Search 2013 Content Search Web Part – Intro Introduction Demo Overview of the Query Builder Display Templates Existing Content Search in SP2013 Licensing Other solutions? Cool Ideas – What this means for 2013@bniaulin
  • 9. Problems we face Showing data from multiple lists/libraries at the same time Change the date format in a list/library Contextual Results Changing the look of what we are seeing Accessing information from other Site Collections@bniaulin
  • 10. Previous Solutions Content Query Web Part Search Coding@bniaulin
  • 11. Wonderful XSLT <xsl:template name="dvt_1.noKeyword"> <span class="srch-description2"> <xsl:choose> <xsl:when test="$IsFixedQuery"> <xsl:value-of select="$NoFixedQuery" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$NoKeyword" /> </xsl:otherwise> </xsl:choose> </span> </xsl:template> <!-- When empty result set is returned from search --> <xsl:template name="dvt_1.empty"> <div class="srch-results"> <xsl:if test="string-length($SrchRSSLink) &gt; 0 and $ShowActionLinks"> <a type="application/rss+xml" href ="{$SrchRSSLink}" title="{$SrchRSSText}" id="SRCHRS @bniaulin Share-gate.commargin">
  • 12. BASICS OF SEARCH 2013
  • 13. What’s new? FAST + SEARCH Continuous Crawl Content Search Display Templates everywhere HTML – no more XSLT Search Results Result Sources, Result Types…. Just an overall better Search = Search Driven Sites@bniaulin
  • 15. Introduction to the Web Part Site Collection A Content Search Search Web Part Site Collection B Search Crawl @bniaulin
  • 16. What is it made of? The Content Search Web Part is essentially 2 things 1. Query Builder 2. Display Templates@bniaulin
  • 17. The Query Builder@bniaulin
  • 20. Overview
  • 21. What it does Stored in “~sitecollection/_catalogs/masterpage/Display Templates/” Provides reusable displays for your Content NO MORE XSLT! HTML and Javascript Uses “Managed Properties” to show the content in right <div>@bniaulin
  • 22. Categories of Display Templates Control Similar to ContentQueryMain.xsl Filter, Group and Hover Panel Similar to Header.xsl +more Item Similar to itemstyle.xsl@bniaulin
  • 23. Control The container for the “Groups, Filters and Items” to come Best way to reference custom files (JavaScript, CSS, etc…)@bniaulin
  • 24. Item Controls what happens to each item rendered through the query Use Managed Properties to show the content you want where you want using HTML@bniaulin
  • 25. Editing a Display Template Always comes in 2; a HTML and JS file NEVER edit the JS file – it is automatically generated@bniaulin
  • 26. Editing a Display Template (2) Very easy to understand and manipulate compared to XSLT Always best to copy an existing and work from there Remember to only copy the HTML file, the JS is generated Demo! @bniaulin
  • 27. PREBUILT
  • 28. Prebuilt Content Searches Microsoft SharePoint offers prebuilt Content Search Web Parts for specific scenarios@bniaulin
  • 30. Not available everywhere Only available on SharePoint 2013 Enterprise@bniaulin
  • 32. Search Results Web PartHow-To@bniaulin
  • 34. Cool! Create dynamic Home Pages or Collaboration Sites Render an entire Web Page through Content Search Web Page is a Search Result contextual to the user! Cool!@bniaulin
  • 35. DEMO
  • 36. THANK YOU!KEEP IN TOUCH ON TWITTER @BNIAULIN Blog Website Email Benjamin Niaulin@bniaulin