february 13 th , 2013

28
http://sharepointmn.com Welcome to the Minnesota SharePoint User Group February 13 th , 2013 SharePoint 2013 – Developers Track - Client Side Rendering Vish Yem & Nate Hadro Donald Donais

Upload: daniel-dotson

Post on 15-Mar-2016

26 views

Category:

Documents


1 download

DESCRIPTION

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 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: February 13 th , 2013

http://sharepointmn.com

Welcome to the Minnesota SharePoint

User GroupFebruary 13th, 2013

SharePoint 2013 – Developers Track - Client Side Rendering

Vish Yem & Nate Hadro

Donald Donais

Page 2: February 13 th , 2013

http://sharepointmn.com

Agenda• Introductions• Client Side Object Model (CSOM)• Client Side Rendering• Content Search Webpart• Search Center Rendering

Page 3: February 13 th , 2013

http://sharepointmn.com

Presenters

Page 4: February 13 th , 2013

http://sharepointmn.com

Vish Yem• SharePoint Consultant• Father & Hawkeye fan

Introductions

Page 5: February 13 th , 2013

http://sharepointmn.com

Nate Hadro• SharePoint Consultant• Father and Snowboarding Enthusiast

Introductions

Page 6: February 13 th , 2013

http://sharepointmn.com

SharePoint Client Side Object Model (CSOM)

Page 7: February 13 th , 2013

http://sharepointmn.com

• 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 2010

Page 8: February 13 th , 2013

http://sharepointmn.com

• 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 Object Model in 2013

Page 9: February 13 th , 2013

http://sharepointmn.com

Demo – SharePoint 2013 RESTful service

Page 10: February 13 th , 2013

http://sharepointmn.com

Client Side Rendering

Page 11: February 13 th , 2013

http://sharepointmn.com

List Data+

JavaScript=

HTML

Client Side Rendering (CSR)

Page 12: February 13 th , 2013

http://sharepointmn.com

Demo – Client Side Rendering using JSLink

Page 13: February 13 th , 2013

http://sharepointmn.com

Content Search Webpart

Page 14: February 13 th , 2013

http://sharepointmn.com

• Cross Site Collection• Results from Search Index• Query Builder• Display Templates

Content Search vs. Content Query

Page 15: February 13 th , 2013

http://sharepointmn.com

Retrieves managed properties

Display Templates

Document Summary

Path

File Extension Title Preview Image

Rendered using HTML and JavaScript instead of XSL

Page 16: February 13 th , 2013

http://sharepointmn.com

Page 17: February 13 th , 2013

http://sharepointmn.com

Demo – Content Search Webpart

Page 18: February 13 th , 2013

http://sharepointmn.com

• 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

Display Templates Summary

Page 19: February 13 th , 2013

http://sharepointmn.com

Search Center Rendering

Page 20: February 13 th , 2013

http://sharepointmn.com

Quick test… raise your hand when you’re done

Page 21: February 13 th , 2013

http://sharepointmn.com

Find the PDF

Now find Joanna’s project

Page 22: February 13 th , 2013

http://sharepointmn.com

• Results all look the same• Company documents and sites are not the same

What’s the problem?

Page 23: February 13 th , 2013

http://sharepointmn.com

Hello, Result Types!Tailor the look or important types of results.

Page 24: February 13 th , 2013

http://sharepointmn.com

Demo – Result Types

Page 25: February 13 th , 2013

http://sharepointmn.com

• Refiners• Query Rules

(Demo if time allows)

Additional Rendering

Page 26: February 13 th , 2013

http://sharepointmn.com

• 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-functio

nal-primer/

• Chris O’Brien: Using the Content Search web part http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functio

nal-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

SharePoint Resources

Page 27: February 13 th , 2013

http://sharepointmn.com

Questions?

Page 28: February 13 th , 2013

http://sharepointmn.com

Thanks for coming!