Your SlideShare is downloading. ×

SPCA2013 - Content Search Web Part

2,070

Published on

SharePoint 2013 Content Search Web Part

SharePoint 2013 Content Search Web Part

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

No Downloads
Views
Total Views
2,070
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
51
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Content Search Web Part Get it all in one place and style it! Benjamin Niaulin SharePoint Geek
  • 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. 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. 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. INTRODUCTION
  • 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. Previous Solutions Content Query Web Part Search @bniaulin Coding Share-gate.com
  • 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. @bniaulin Share-gate.com
  • 10. BASICS OF SEARCH 2013
  • 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. CONTENT SEARCH
  • 13. Introduction to the Web Part Site Collection A Site Collection B @bniaulin Search Crawl Search Content Search Web Part Share-gate.com
  • 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. The Query Builder @bniaulin Share-gate.com
  • 16. QUERY BUILDER DEMO
  • 17. DISPLAY TEMPLATES
  • 18. Overview http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1041 @bniaulin Share-gate.com
  • 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. 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. 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. 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. 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. I SAID DO NOT TOUCH Do not t ouch t he JS f il e @bniaulin Share-gate.com
  • 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. PREBUILT
  • 27. Prebuilt Content Searches Microsoft SharePoint offers prebuilt Content Search Web Parts for specific scenarios @bniaulin Share-gate.com
  • 28. LICENSING
  • 29. Not available everywhere Only available on SharePoint 2013 Enterprise @bniaulin Share-gate.com
  • 30. OTHER SOLUTIONS?
  • 31. Search Results Web Part How-To @bniaulin Share-gate.com
  • 32. WHAT THIS MEANS
  • 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. DEMO
  • 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

×