Presentation on theme: "Meeting #127http://sharepointmn.com Welcome to the Minnesota SharePoint User Group July 8 th, 2015 SharePoint Search and Display Templates Kameron Berget."— Presentation transcript:
Meeting #127http://sharepointmn.com Welcome to the Minnesota SharePoint User Group July 8 th, 2015 SharePoint Search and Display Templates Kameron Berget Donald Donais
Meeting #127http://sharepointmn.com Agenda MNSPUG Information Search and Display Templates BREAK Search and Display Templates Giveaways
Meeting #127http://sharepointmn.com User Group Goal / Objectives Develop and support a local community focused on Microsoft SharePoint Technologies Educate user group members about SharePoint Technologies Transfer knowledge within the community Communicate best practices Introduce new products / solutions
Meeting #127http://sharepointmn.com MNSPUG Sponsors Wrox Press (www.wrox.com)www.wrox.com O’Reilly (www.oreilly.com)www.oreilly.com Dedicated Sponsors Avtex (www.avtex.com)www.avtex.com Microsoft (www.microsoft.com)www.microsoft.com Annual Sponsor Sponsorships Levels: Gold Sponsorship - $500 Silver Sponsorship - $250 Sponsorships Levels: Gold Sponsorship - $500 Silver Sponsorship - $250 SharePoint User Group Support Atomic Data (http://www.atomicdata.com)http://www.atomicdata.com
Meeting #127http://sharepointmn.com MN SharePoint Users Group Website SharePoint Resource Documents SharePoint Resource links RSS Feeds Meeting Schedule Past User Group Presentations Past User Group Recordings Sponsorship Information http://sharepointmn.com Email: email@example.com@sharepointmn.com
Meeting #127http://sharepointmn.com Social Networking Linked In group – The most interactive… includes job postings… Post Job Posting on the Jobs Discussion page http://www.linkedin.com/groups?gid=1878792 http://www.linkedin.com/groups?gid=1878792 Twitter tags - @MNSPUG and #MNSPUG Yammer – Minnesota SharePoint Users Group https://www.yammer.com/mnspug/ https://www.yammer.com/mnspug/
Meeting #127http://sharepointmn.com Upcoming Schedule Next Meeting August 12 th, 2015 – Wendy Neal - SharePoint Usability and Design Tips for Non Designers Microsoft Technology Center, Edina, MN Check www.SharePointMN.com for updates!www.SharePointMN.com Ongoing Schedule 2 nd Wednesday of every month 9:00 to 11:30 am Microsoft Technical Center – Edina
Meeting #127http://sharepointmn.com Local and Online Events
Meeting #127http://sharepointmn.com What to Expect
Meeting #127http://sharepointmn.com What are we used to when customizing results? Content Query Web Part Limited to site collection Had to write XSLT Slots (Similar to Content Search Display Templates) Search 2007/2010 XSLT Transformation/Templates to alter results
Meeting #127http://sharepointmn.com Challenge/Problem We want to get content from anywhere in our farm. Display the results the way we want. Create a reusable solution.
Meeting #127http://sharepointmn.com Types of Display Templates Control Templates Determine the overall structure of how the results are presented. Includes lists, lists with paging, and slide shows. Item Templates (Result and Content Search) Determine how each result in the set is displayed. Includes images, text, video, and other items. Filter (Refinement) Templates Determine how each filter option is displayed.
Meeting #127http://sharepointmn.com Where do we use these web parts? Display templates can only be used with Search web parts. Search Results Content Search Cross-Site Publishing Supported in both SPO and On Premises Both will work with refinement web parts too.
Meeting #127http://sharepointmn.com Search Results Content Search Query Builder Display specific content Template Structure Template Location Web part configuration Reusable/Dynamic Web part configuration Template Location Result Types
Meeting #127http://sharepointmn.com Managed Properties Display templates rely on Managed Properties to display data within the template. Site Columns vs. List Columns Site Columns get Managed properties mapped automatically. [Predictable] List columns do not. You must create your own Managed Property after the content has been picked up by the crawl. Managed Property schema defines how each value can be used. Text, Date, Number, Refiner, Sorting, Etc. Changes to schema requires full crawl to take effect. SPO provides pre-configured managed properties for Refinement and Sorting. On Premises deployments require that you setup each property.
Meeting #127http://sharepointmn.com Today’s Scenario Today we are working with Contoso Thrills, an Amusement park company. They have a list of their rides, upcoming events and primary contacts. They would like to display this information in a more user friendly manner for their consumers. Some data has already been created along with content types and site columns. SPO Contoso Thrills Search Contoso News
Meeting #127http://sharepointmn.com Introduction to Rides, Events and People Lists Browse and locate display templates to get familiar with the pieces
Meeting #127http://sharepointmn.com /_catalogs/masterpage/Display Templates contains all of our display templates Display templates are local to the site collection but can be copied across sites as needed. All webs (aka Sub-sites) within the Site collection share the same display templates. Search Server Web Parts and Templates site collection feature needs to be activated to gain full functionality. Publishing Infrastructure needs to activated in order to see and add display templates. Design manager gives use a shortcut to our display templates
Meeting #127http://sharepointmn.com Modify our search center to show our custom refiners – Review properties in Schema Create new item result display template – Add rating and Height managed properties Create custom hover display template – Add publishing image managed property Create custom result type View our results
Meeting #127http://sharepointmn.com SPO gives us preconfigured managed properties for Refinement and Sorting. We cannot create our own. On Premises we create our own. The best way to build a new display template = Copy/Paste Search Results web parts rely on Result types to know how to render each result. Based on priority. Hover display templates add nice fly-out capability and the template structure is much the same.
Meeting #127http://sharepointmn.com Create new content search display template – Add rating and Height managed property mappings/slots Modify the homepage of Contoso Thrills to add a content search web part for Thrill rides and Family Rides. View our results
Meeting #127http://sharepointmn.com Content Search display templates differ slightly in their authoring Content Search display templates promote reusability for popular item layouts. The Content Search web part is configured differently than the search results web part.
Meeting #127http://sharepointmn.com Build display template for Events Review our new search driven home page.
Meeting #127http://sharepointmn.com Display templates are new and take some getting used to. Results hinge on crawl freshness. – Cannot control in SPO (See tips) – Certain requirements may require continuous crawl We have several different kind of display templates. Although similar in structure, they each provide a different unique purpose. Result type property sync is required when property mappings change. Haven’t seen this for SPO.
Meeting #127http://sharepointmn.com Resources Slide Microsoft intro to display templates https://msdn.microsoft.com/en- us/library/office/jj945138.aspx#bk_introduction https://msdn.microsoft.com/en- us/library/office/jj945138.aspx#bk_introduction SharePoint 2013 Search Display Template and Query Rules – Matthew McDermott https://channel9.msdn.com/Events/SharePoint-Conference/2014/SPC322 https://channel9.msdn.com/Events/SharePoint-Conference/2014/SPC322 Changing the look of Search using Display Templates and CSR https://channel9.msdn.com/Events/SharePoint- Conference/2014/SPC3000 - https://channel9.msdn.com/Events/SharePoint- Conference/2014/SPC3000
Meeting #127http://sharepointmn.com Last But Not Least Please Fill Out Evaluations Drawings for Giveaways Online Participants Eval http://1drv.ms/1ctXdcB http://1drv.ms/1ctXdcB Today’s Presenters: Kameron Berget