280 likes | 393 Views
Donald Donais. February 13 th , 2013. SharePoint 2013 – Developers Track - Client Side Rendering. Vish Yem & Nate Hadro. Agenda. Introductions Client Side Object Model (CSOM) Client Side Rendering Content Search Webpart Search Center Rendering. Presenters. Introductions. Vish Yem
E N D
Donald Donais February 13th, 2013 SharePoint 2013 – Developers Track - Client Side Rendering Vish Yem & Nate Hadro
Agenda • Introductions • Client Side Object Model (CSOM) • Client Side Rendering • Content Search Webpart • Search Center Rendering
Introductions Vish Yem • SharePoint Consultant • Father & Hawkeye fan
Introductions Nate Hadro • SharePoint Consultant • Father and Snowboarding Enthusiast
Client Side Object Model in 2010 • Client APIs that allowed you to program against SharePoint objects without deploying code to the server • Three APIs • Silverlight • .NET • JavaScript • Subset of the server object model • /_vti_bin/client.svc
Client Side Object Model in 2013 • Expanded access to SharePoint objects • client.svc extended to support REST using _api • What is a RESTful web service? • Web based data access • Query by URL • What is OData? • Standard protocol for implementing REST services • Standardize HTTP verb mapping, URIs and syntax
Client Side Rendering (CSR) List Data + JavaScript = HTML
Content Search vs. Content Query • Cross Site Collection • Results from Search Index • Query Builder • Display Templates
Display Templates Retrieves managed properties Preview Image File Extension Title Document Summary Path Rendered using HTML and JavaScript instead of XSL
Display Templates Summary • Place them in the Master Page Gallery • Copied an existing display template • Added a new managed property • Customized the information based on a JavaScript condition • Use the editor of your choice
Find the PDF Now find Joanna’s project
What’s the problem? • Results all look the same • Company documents and sites are not the same
Hello, Result Types!Tailor the look or important types of results.
Additional Rendering • Refiners • Query Rules (Demo if time allows)
SharePoint Resources • Customizing field types using client-side rendering • http://msdn.microsoft.com/en-us/library/jj220061.aspx • David Mann: Custom field types in SharePoint 2013 • http://blog.aptillon.com/2012/10/12/custom-field-types-in-sharepoint-2013-apps/ • Wes Preston: JS Link for Web Parts • http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/ • Chris O’Brien: Using the Content Search web part • http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/ • Using Query Rules, Result Types, and Display Templates • http://blogs.technet.com/b/speschka/archive/2012/07/23/using-query-rules-result-types-and-display-templates-for-a-custom-search-sales-report-in-sharepoint-2013.aspx