SlideShare une entreprise Scribd logo
1  sur  25
Agility Systems, philly.NET User Group
bill@businessagility.net
SharePoint 2013
Client Side Rendering
2 | SharePoint Saturday New York City 2013
OUTLINE & AGENDA
• What is CSR?
• Demo: Lap around SP 2013
• Using JSLink in Views
• Demo: MLB Teams
• Using Display Templates in Search
• Demo: Refiners, result types, templates, oh
my!
• Custom Hover Panels
• Demo: MLB Parks
3 | SharePoint Saturday New York City 2013
SOME PERSPECTIVE
• SharePoint 2007
• CAML on server
• SharePoint 2010
• XML data, CSOM
• XSLT on server
• SharePoint 2013
• REST, CSOM, JSON
• CSR JavaScript
4 | SharePoint Saturday New York City 2013
WHAT IS CLIENT SIDE RENDERING?
• Extensive JavaScript libraries
• Functions for all major SharePoint UI
• Complements CSOM and REST
• Use JS, jQuery, KnockoutJS, Angular,
Promises
• Used internally for
• Navigation, ribbon, animation, themes
• Forms, views, list edit, callouts
• Search items, hover panels, refiners
DEMO: LAP AROUND SP 2013
• Get started
• animation
• Ribbon
• Animation, actions
• Focus content
• styles
• Edit links nav
• Site contents
• ECB and callouts
• Search
• hover panel, display templates
• Apps
• Documents
• Calendar
• Tasks
• Custom list
• Create without refresh
• Sort of like SPA
• Single Page Application
• F12
• script list
7 | SharePoint Saturday New York City 2013
DEVELOPER PERSPECTIVE
• SharePoint 2007
• Server side CAML and .NET code
• Web parts, event receivers
• SharePoint 2010
• Server side CAML, .NET code, XSLT views
• CSOM and limited REST client side
• SharePoint 2013
• REST, CSOM, JSON, mQuery in CSR
• App model
8 | SharePoint Saturday New York City 2013
COMMON DEVELOPER TASKS
• JSLink
• Lists, views
• Field formatting
• Web parts
• Content types
• Display Templates
• Content Search web part
• Search hover panel
• List callouts
9 | SharePoint Saturday New York City 2013
JSLINK
• Element added to view definitions and web parts
• Similar to XSLT in 2010
• Set in code or Advanced web part properties
• Points to JavaScript file
• Convenient storage in _catalog/masterpage
• Content type collects required metadata
• Edit with SharePoint Designer, Visual Studio,
text
• Debug with browser tools or VS
10 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• Templates collection
• Header, item, footer, and others
• Register with scope
• BaseViewID, ListTemplateType, ControlMode
• Need additional commands for MDS timing
• RegisterModuleInit
11 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• OnPreRender
• Has data
• No markup
• Dynamic lookups
• OnPostRender
• Complete DOM
• jQuery tricks
• Operations on entire result set
12 | SharePoint Saturday New York City 2013
JSLINK RENDERCONTEXT
• ListData
• Stores data
• Columns based on CAML
• ListSchema
• Stores metadata
• ctx
• Context of current operation
• Instance metadata: user, site, list, etc.
13 | SharePoint Saturday New York City 2013
JSLINK ADVANCED
• SPClientRenderer.Render()
• From arbitrary data
• Outside of page context
• In AJAX methods
14 | SharePoint Saturday New York City 2013
DEMO: JSLINK IN VIEWS
• _catalogmasterpage, upload file, content type
• JSLink pointer in default view
• Prove it works with Alert, anonymous function
• Custom field, multiple fields, formatting,
functions
• MDS issue and Register
• Row highlight with OnRender
• Override entire view, show on new page
• Edit/New form hidden and read only fields
15 | SharePoint Saturday New York City 2013
16 | SharePoint Saturday New York City 2013
17 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Work much like web parts
• Connected to some data source
• Use in search result web part via result type
• Use in content by search web part (on-premise)
• Similar to JSLink in approach
• Can share utility libraries
• Data comes from search index
• Managed properties with Retrieve flag
• <mso:ManagedPropertyMapping>
18 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Stored in _catalogs/masterpage/Display Templates/
• Scope at collection or site level
• Library with content types
• Supports versioning
• Can deploy with solutions and feature receivers
• Editors
• Visual Studio
• SharePoint Designer
• NotePad++ or similar
19 | SharePoint Saturday New York City 2013
DISPLAY TEMPLATES
• Folders
• Content Web Parts
• Filters
• Language Files
• Search
• Server Style Sheets
• System
20 | SharePoint Saturday New York City 2013
DEMO: DISPLAY TEMPLATES
• Show location of display templates
• Show filter edit for refiner counts
• Explain refiners
• Show team result type
• Demo team display template
21 | SharePoint Saturday New York City 2013
22 | SharePoint Saturday New York City 2013
HOVER PANELS
• Floating DIV with header, content, footer, actions
• AKA Callouts
• Used extensively in OOTB UI
• Essential to search experience
• Associated with a display template, result
type
• Use CalloutManager
• Attach to launchpoint
• Set beak orientation
23 | SharePoint Saturday New York City 2013
DEMO: HOVER PANELS
• Show existing JS templates
• Demo PDF object in Search page
• Explain team hover
24 | SharePoint Saturday New York City 2013
CSR SUMMARY
• Learn how Microsoft makes SP pages responsive
• Invest in JavaScript talent
• Use REST and JSON to retrieve data
• Convert some views to JSLink overrides
• Make some Search display templates
• Try some hover panels
• On-premise:
• Investigate Content by Search web part
THANK YOU
EVENT SPONSORS
• Please visit them and inquire about
their products & services
• To win prizes make sure to get your
bingo card stamped by ALL sponsors

Contenu connexe

Tendances

How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3
Ryan McIntyre
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
Mark Rackley
 

Tendances (20)

SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink TemplatesSharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
 
Transform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSTransform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSS
 
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrienCustomizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
 
Introduction to using jQuery with SharePoint
Introduction to using jQuery with SharePointIntroduction to using jQuery with SharePoint
Introduction to using jQuery with SharePoint
 
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01SharePoint Framework, React and Office UI SPS Paris 2016 - d01
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
 
Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016Working with a super model for SharePoint Tuga IT 2016
Working with a super model for SharePoint Tuga IT 2016
 
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery librariesTulsaTechFest - Maximize SharePoint UX with free jQuery libraries
TulsaTechFest - Maximize SharePoint UX with free jQuery libraries
 
SharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cellsSharePoint 2013: Using Client-Side Rendering to color-code list cells
SharePoint 2013: Using Client-Side Rendering to color-code list cells
 
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
 
The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14The SharePoint & jQuery Guide - Updated 1/14/14
The SharePoint & jQuery Guide - Updated 1/14/14
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form Usability
 
How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3How to Improve the SharePoint UI Using Bootstrap 3
How to Improve the SharePoint UI Using Bootstrap 3
 
App deployment
App deploymentApp deployment
App deployment
 
4 tools, sandboxed solutionds, web part development
4   tools, sandboxed solutionds, web part development4   tools, sandboxed solutionds, web part development
4 tools, sandboxed solutionds, web part development
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 
(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide
 
SPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuideSPSNH 2014 - The SharePoint & jQueryGuide
SPSNH 2014 - The SharePoint & jQueryGuide
 
SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 

Similaire à SharePoint 2013 Client Side Rendering

Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePoint
Talbott Crowell
 
Microsoft sharepoint business intelligence training
Microsoft sharepoint business intelligence trainingMicrosoft sharepoint business intelligence training
Microsoft sharepoint business intelligence training
sharepointmasters
 

Similaire à SharePoint 2013 Client Side Rendering (20)

SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government Environments
 
Custom Development for SharePoint
Custom Development for SharePointCustom Development for SharePoint
Custom Development for SharePoint
 
Sharepoint 2010 content
Sharepoint 2010 contentSharepoint 2010 content
Sharepoint 2010 content
 
SharePoint Development in Government Environments
SharePoint Development in Government EnvironmentsSharePoint Development in Government Environments
SharePoint Development in Government Environments
 
Software development
Software  development Software  development
Software development
 
Developing Search-driven application in SharePoint 2013
 Developing Search-driven application in SharePoint 2013  Developing Search-driven application in SharePoint 2013
Developing Search-driven application in SharePoint 2013
 
SharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based SolutionsSharePoint 2013 Search Based Solutions
SharePoint 2013 Search Based Solutions
 
BEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNINGBEST INSTITUTE FOR WEB DESIGNING
BEST INSTITUTE FOR WEB DESIGNING
 
MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?MIGRATION - PAIN OR GAIN?
MIGRATION - PAIN OR GAIN?
 
DogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experienceDogFoodCon - Understanding and customizing the modern SharePoint experience
DogFoodCon - Understanding and customizing the modern SharePoint experience
 
Become a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - ThisiswaliBecome a Full Stack Web Developer (.NET) - Thisiswali
Become a Full Stack Web Developer (.NET) - Thisiswali
 
CORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVACORE JAVA & ADVANCE JAVA
CORE JAVA & ADVANCE JAVA
 
9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi9 Months Web Development Diploma Course in North Delhi
9 Months Web Development Diploma Course in North Delhi
 
Asp.net
Asp.netAsp.net
Asp.net
 
Means stack course in pune(etlhive)
Means stack course in pune(etlhive)Means stack course in pune(etlhive)
Means stack course in pune(etlhive)
 
Full Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix TechnologiesFull Stack Developer Course | Infinite Graphix Technologies
Full Stack Developer Course | Infinite Graphix Technologies
 
Internet Marketing Institute in Delhi
Internet Marketing Institute in DelhiInternet Marketing Institute in Delhi
Internet Marketing Institute in Delhi
 
Microsoft sharepoint business intelligence training
Microsoft sharepoint business intelligence trainingMicrosoft sharepoint business intelligence training
Microsoft sharepoint business intelligence training
 
Software development
Software developmentSoftware development
Software development
 
Ui devopler
Ui devoplerUi devopler
Ui devopler
 

Dernier

Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 

Dernier (20)

how-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdfhow-to-download-files-safely-from-the-internet.pdf
how-to-download-files-safely-from-the-internet.pdf
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
Software Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements EngineeringSoftware Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements Engineering
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
Salesforce Introduced Zero Copy Partner Network to Simplify the Process of In...
 
^Clinic ^%[+27788225528*Abortion Pills For Sale In witbank
^Clinic ^%[+27788225528*Abortion Pills For Sale In witbank^Clinic ^%[+27788225528*Abortion Pills For Sale In witbank
^Clinic ^%[+27788225528*Abortion Pills For Sale In witbank
 
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
COMPUTER AND ITS COMPONENTS PPT.by naitik sharma Class 9th A mittal internati...
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
 
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
Abortion Clinic In Springs ](+27832195400*)[ 🏥 Safe Abortion Pills in Springs...
 
OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Sinoville Clinic ](+27832195400*)[🏥Abortion Pill Prices Sinoville ● Women's A...
Sinoville Clinic ](+27832195400*)[🏥Abortion Pill Prices Sinoville ● Women's A...Sinoville Clinic ](+27832195400*)[🏥Abortion Pill Prices Sinoville ● Women's A...
Sinoville Clinic ](+27832195400*)[🏥Abortion Pill Prices Sinoville ● Women's A...
 
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
Optimizing Operations by Aligning Resources with Strategic Objectives Using O...
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
 
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-CloudAlluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
 

SharePoint 2013 Client Side Rendering

  • 1. Agility Systems, philly.NET User Group bill@businessagility.net SharePoint 2013 Client Side Rendering
  • 2. 2 | SharePoint Saturday New York City 2013 OUTLINE & AGENDA • What is CSR? • Demo: Lap around SP 2013 • Using JSLink in Views • Demo: MLB Teams • Using Display Templates in Search • Demo: Refiners, result types, templates, oh my! • Custom Hover Panels • Demo: MLB Parks
  • 3. 3 | SharePoint Saturday New York City 2013 SOME PERSPECTIVE • SharePoint 2007 • CAML on server • SharePoint 2010 • XML data, CSOM • XSLT on server • SharePoint 2013 • REST, CSOM, JSON • CSR JavaScript
  • 4. 4 | SharePoint Saturday New York City 2013 WHAT IS CLIENT SIDE RENDERING? • Extensive JavaScript libraries • Functions for all major SharePoint UI • Complements CSOM and REST • Use JS, jQuery, KnockoutJS, Angular, Promises • Used internally for • Navigation, ribbon, animation, themes • Forms, views, list edit, callouts • Search items, hover panels, refiners
  • 5. DEMO: LAP AROUND SP 2013 • Get started • animation • Ribbon • Animation, actions • Focus content • styles • Edit links nav • Site contents • ECB and callouts • Search • hover panel, display templates • Apps • Documents • Calendar • Tasks • Custom list • Create without refresh • Sort of like SPA • Single Page Application • F12 • script list
  • 6.
  • 7. 7 | SharePoint Saturday New York City 2013 DEVELOPER PERSPECTIVE • SharePoint 2007 • Server side CAML and .NET code • Web parts, event receivers • SharePoint 2010 • Server side CAML, .NET code, XSLT views • CSOM and limited REST client side • SharePoint 2013 • REST, CSOM, JSON, mQuery in CSR • App model
  • 8. 8 | SharePoint Saturday New York City 2013 COMMON DEVELOPER TASKS • JSLink • Lists, views • Field formatting • Web parts • Content types • Display Templates • Content Search web part • Search hover panel • List callouts
  • 9. 9 | SharePoint Saturday New York City 2013 JSLINK • Element added to view definitions and web parts • Similar to XSLT in 2010 • Set in code or Advanced web part properties • Points to JavaScript file • Convenient storage in _catalog/masterpage • Content type collects required metadata • Edit with SharePoint Designer, Visual Studio, text • Debug with browser tools or VS
  • 10. 10 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • Templates collection • Header, item, footer, and others • Register with scope • BaseViewID, ListTemplateType, ControlMode • Need additional commands for MDS timing • RegisterModuleInit
  • 11. 11 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • OnPreRender • Has data • No markup • Dynamic lookups • OnPostRender • Complete DOM • jQuery tricks • Operations on entire result set
  • 12. 12 | SharePoint Saturday New York City 2013 JSLINK RENDERCONTEXT • ListData • Stores data • Columns based on CAML • ListSchema • Stores metadata • ctx • Context of current operation • Instance metadata: user, site, list, etc.
  • 13. 13 | SharePoint Saturday New York City 2013 JSLINK ADVANCED • SPClientRenderer.Render() • From arbitrary data • Outside of page context • In AJAX methods
  • 14. 14 | SharePoint Saturday New York City 2013 DEMO: JSLINK IN VIEWS • _catalogmasterpage, upload file, content type • JSLink pointer in default view • Prove it works with Alert, anonymous function • Custom field, multiple fields, formatting, functions • MDS issue and Register • Row highlight with OnRender • Override entire view, show on new page • Edit/New form hidden and read only fields
  • 15. 15 | SharePoint Saturday New York City 2013
  • 16. 16 | SharePoint Saturday New York City 2013
  • 17. 17 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Work much like web parts • Connected to some data source • Use in search result web part via result type • Use in content by search web part (on-premise) • Similar to JSLink in approach • Can share utility libraries • Data comes from search index • Managed properties with Retrieve flag • <mso:ManagedPropertyMapping>
  • 18. 18 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Stored in _catalogs/masterpage/Display Templates/ • Scope at collection or site level • Library with content types • Supports versioning • Can deploy with solutions and feature receivers • Editors • Visual Studio • SharePoint Designer • NotePad++ or similar
  • 19. 19 | SharePoint Saturday New York City 2013 DISPLAY TEMPLATES • Folders • Content Web Parts • Filters • Language Files • Search • Server Style Sheets • System
  • 20. 20 | SharePoint Saturday New York City 2013 DEMO: DISPLAY TEMPLATES • Show location of display templates • Show filter edit for refiner counts • Explain refiners • Show team result type • Demo team display template
  • 21. 21 | SharePoint Saturday New York City 2013
  • 22. 22 | SharePoint Saturday New York City 2013 HOVER PANELS • Floating DIV with header, content, footer, actions • AKA Callouts • Used extensively in OOTB UI • Essential to search experience • Associated with a display template, result type • Use CalloutManager • Attach to launchpoint • Set beak orientation
  • 23. 23 | SharePoint Saturday New York City 2013 DEMO: HOVER PANELS • Show existing JS templates • Demo PDF object in Search page • Explain team hover
  • 24. 24 | SharePoint Saturday New York City 2013 CSR SUMMARY • Learn how Microsoft makes SP pages responsive • Invest in JavaScript talent • Use REST and JSON to retrieve data • Convert some views to JSLink overrides • Make some Search display templates • Try some hover panels • On-premise: • Investigate Content by Search web part
  • 25. THANK YOU EVENT SPONSORS • Please visit them and inquire about their products & services • To win prizes make sure to get your bingo card stamped by ALL sponsors