Content Search Web
Part

Get it all in one place and style it!
Benjamin Niaulin
SharePoint Geek
Description
We’ve always been limited to show items and
documents from our current site or Site
Collection. In SharePoint ...
Benjamin Niaulin





@bniaulin

t w it t er.com / b niaulin

ca.linked in.com / in/ b niaulin

b enjam in.niaulin@sha...
Agenda
Introduction – Problems and Previous Solutions
Basics of Search 2013
Content Search Web Part – Intro
Introduction D...
INTRODUCTION
Problems we face
Showing data from multiple lists/libraries at the same time
Change the date format in a list/library
Cont...
Previous Solutions

Content Query Web Part

Search

@bniaulin

Coding

Share-gate.com
Wonderful XSLT
<xsl:template name="dvt_1.noKeyword">
<span class="srch-description2">
<xsl:choose>
<xsl:when test="$IsFixe...
@bniaulin

Share-gate.com
BASICS OF SEARCH 2013
What’s new?
FAST + SEARCH
Continuous Crawl
Content Search
Display Templates everywhere
HTML – no more XSLT
Search Results
...
CONTENT SEARCH
Introduction to the Web Part
Site Collection A

Site Collection B

@bniaulin

Search
Crawl

Search

Content Search
Web Par...
What is it made of?
The Content Search Web Part is essentially 2 things

1. Query Builder

2. Display Templates

@bniaulin...
The Query Builder

@bniaulin

Share-gate.com
QUERY BUILDER DEMO
DISPLAY TEMPLATES
Overview

http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1041

@bniaulin

Share-gate.com
What it does
Stored in “~sitecollection/_catalogs/masterpage/Display
Templates/”
Provides reusable displays for your Conte...
Categories of Display Templates
Control
Similar to ContentQueryMain.xsl
Filter, Group and Hover Panel
Similar to Header.xs...
Control
The container for the
“Groups, Filters and
Items” to come
Best way to reference
custom files (JavaScript,
CSS, etc...
Item
Controls what happens to
each item rendered
through the query
Use Managed Properties
to show the content you
want whe...
Editing a Display Template
Always comes in 2; a HTML and JS file
NEVER edit the JS file – it is automatically generated

@...
I SAID DO NOT TOUCH

Do not
t ouch
t he JS
f il e
@bniaulin

Share-gate.com
Editing a Display Template (2)
Very easy to understand and manipulate compared to
XSLT

Always best to copy an existing an...
PREBUILT
Prebuilt Content Searches
Microsoft SharePoint offers prebuilt Content Search Web
Parts for specific scenarios

@bniaulin
...
LICENSING
Not available everywhere
Only available on SharePoint 2013 Enterprise

@bniaulin

Share-gate.com
OTHER SOLUTIONS?
Search Results Web Part

How-To

@bniaulin

Share-gate.com
WHAT THIS MEANS
Cool!
Create dynamic
Home Pages or
Collaboration Sites
Render an entire
Web Page through
Content Search
Web Page is a
Sear...
DEMO
Benjamin Niaulin





@bniaulin

t w it t er.com / b niaulin

ca.linked in.com / in/ b niaulin

b enjam in.niaulin@sha...
Upcoming SlideShare
Loading in …5
×

SPCA2013 - Content Search Web Part

2,740 views

Published on

SharePoint 2013 Content Search Web Part

Published in: Technology, Design
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,740
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
61
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

SPCA2013 - Content Search Web Part

  1. 1. Content Search Web Part Get it all in one place and style it! Benjamin Niaulin SharePoint Geek
  2. 2. Description We’ve 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 Share-gate.com
  3. 3. Benjamin Niaulin     @bniaulin t w it t er.com / b niaulin ca.linked in.com / in/ b niaulin b enjam in.niaulin@shar e-g at e.com b niaulin.w ord p ress.com en.share-g at e.com / b log Share-gate.com
  4. 4. 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 Share-gate.com
  5. 5. INTRODUCTION
  6. 6. 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 Share-gate.com
  7. 7. Previous Solutions Content Query Web Part Search @bniaulin Coding Share-gate.com
  8. 8. 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 Share-gate.com @bniaulin margin">
  9. 9. @bniaulin Share-gate.com
  10. 10. BASICS OF SEARCH 2013
  11. 11. 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 Share-gate.com
  12. 12. CONTENT SEARCH
  13. 13. Introduction to the Web Part Site Collection A Site Collection B @bniaulin Search Crawl Search Content Search Web Part Share-gate.com
  14. 14. What is it made of? The Content Search Web Part is essentially 2 things 1. Query Builder 2. Display Templates @bniaulin Share-gate.com
  15. 15. The Query Builder @bniaulin Share-gate.com
  16. 16. QUERY BUILDER DEMO
  17. 17. DISPLAY TEMPLATES
  18. 18. Overview http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1041 @bniaulin Share-gate.com
  19. 19. 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 Share-gate.com
  20. 20. 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 Share-gate.com
  21. 21. Control The container for the “Groups, Filters and Items” to come Best way to reference custom files (JavaScript, CSS, etc…) @bniaulin Share-gate.com
  22. 22. 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 Share-gate.com
  23. 23. Editing a Display Template Always comes in 2; a HTML and JS file NEVER edit the JS file – it is automatically generated @bniaulin Share-gate.com
  24. 24. I SAID DO NOT TOUCH Do not t ouch t he JS f il e @bniaulin Share-gate.com
  25. 25. 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 Share-gate.com
  26. 26. PREBUILT
  27. 27. Prebuilt Content Searches Microsoft SharePoint offers prebuilt Content Search Web Parts for specific scenarios @bniaulin Share-gate.com
  28. 28. LICENSING
  29. 29. Not available everywhere Only available on SharePoint 2013 Enterprise @bniaulin Share-gate.com
  30. 30. OTHER SOLUTIONS?
  31. 31. Search Results Web Part How-To @bniaulin Share-gate.com
  32. 32. WHAT THIS MEANS
  33. 33. 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 Share-gate.com
  34. 34. DEMO
  35. 35. Benjamin Niaulin     @bniaulin t w it t er.com / b niaulin ca.linked in.com / in/ b niaulin b enjam in.niaulin@shar e-g at e.com b niaulin.w ord p ress.com en.share-g at e.com / b log Share-gate.com

×