Farewell XSL, Welcome Display Templates. ”I’m a SharePoint consultant with a passion for branding and development” Elio Struyf SharePoint Consultant Xylos.

Slides:



Advertisements
Similar presentations
Content in SharePoint 2013 Eric Overfield SharePoint Advocate and Enthusiast PixelMill Integrating Search Driven.
Advertisements

Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Xcelsius Tips and Tricks Chris Greer EV Technologies.
Overview and Demonstration of declarative workflows in SharePoint using Microsoft SharePoint Designer 2007 Kevin Hughes MCT, MCITP, MCSA, MCTS, MCP, Network+,
JavaScript and AJAX Jonathan Foss University of Warwick
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to get and stay organized?
XSL eXtensible Stylesheet Language. What is XSL? XSL is a language that allows one to describe a browser how to process an XML file. XSL can convert an.
Introduction to jQuery (for Drupal) Amit Asaravala “aasarava” on drupal.org.
JQuery & SharePoint San Antonio Users Group – September Meeting September 22, 2009 Microsoft SharePoint Server.
Customizing the SharePoint 2013 UI with JavaScript.
Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
Anatomy of a Display Template Marc D Anderson. Who Is Marc?
Microsoft Office ® Access 2007 Microsoft Office Access 2007: Introduzione allo sviluppo Fabio Santini.NET Developer Evangelist Microsoft Italy.
SharePoint 2013 Search NO LONGER JUST FOR ADMINS, NO LONGER JUST FOR FINDING DOCUMENTS.
Razor. Slide 2 Remember this? Browser Web Server HTTP Request HTTP Response (Web page / code) Client code (script) Interpret request Generate HTML and.
SharePoint Saturday Sponsors Gold Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
A GUIDE TO SHAREPOINT 2007 CUSTOMIZATION OPTIONS Heather Solomon, WSS MVP.
Quiz: Which is the CSWP? CATALOG DOCUMENTS ARTICLE S ASSET LIBRARY NAVIGATION Search Usage.
Agenda Overview 2.What is SharePoint? 3.NCDOT Websites 4.Roles 5.Search 6.SharePoint Interface.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
Website Designing Using Ms FrontPage FrontPage 2003 Create a Web site with FrontPage.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
WorkPlace Pro Utilities.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
By: Amber Shepard   Microsoft Outlook is an client and personal information manager (PIM) that's available as part of Microsoft's Office suite.
Sustainable SharePoint 2010 Customizations By Bill Keys.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Web Design (2) Brackets - introduction. Brackets Brackets is a web design code editor It is an open-source project initiated by Adobe (creator of Dreamweaver)
1 SharePoint 2010 “The Art of Possibilities”. 2 Sites.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
Dudok de Wit David.  Documents management in a deskless company  SharePoint Online as a solution  Redesigning the documentary organization  Interoperability.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Getting Started Managing a Collaboration Site Kendra Holly SharePoint Analyst June 13, 2015.
Agenda 69 1.Overview 2.What is SharePoint? 3.NCDOT Websites 4.Roles 5.Search 6.SharePoint Interface.
Templates Manager for SharePoint solves two common problems:  Searching among different kinds of document templates to find the right one can be both.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
MPA-GTA: 2005 EPM SCHEDULE and ANNOUNCEMENTS Dave D’Silva Vice President MPA-GTA.
+ BackBone.js By. Phil Sheperd. + What is BackBone BackBone is a Javascript Framework How is this different From jQuery or Prototype? Libraries vs Framework.
How to create a SharePoint site MICROSOFT OFFICE SHAREPOINT DESIGNER.
Welcome to the Minnesota SharePoint User Group February 13 th, 2013 SharePoint 2013 – Developers Track - Client Side Rendering.
Transportation Agenda 165. Transportation About Pages Pages organize and present information Pages are files that end in.aspx 166.
JQUERY AND AJAX
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
Leveraging SharePoint Search In SharePoint 2013 Jameson Bozeman.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
DEV103 – Web Part Transformers – More than meets the eye By: D’arce Hess.
The New Design Manager! Louis-Philippe Lavoie SharePoint Specialist / What does it mean for you? November.
Create a Business Solution, Step by Step, with No Managed Code9:00 – 12:15 Welcome9:00-9:10 Intro to Tools9:10-9:30 The Challenges9:30-9:45 Breakout.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Spice up Your Forms and Views
Spice up Your Forms and Views
What's new in the world of SharePoint development and deployment
SharePoint Office 365 Dev 200 Training
ASP MVP Web applications and Razor
Anatomy of a Display Template
Content Types: The Backbone of Your Information Architecture
Searching Business Data with MOSS 2007 Enterprise Search
Branding SharePoint Using Application Customizers
Searching Business Data with MOSS 2007 Enterprise Search
Spice up Your Forms and Views
Templates Manager ‒ Introduction
Intro to Client-Side Rendering
Ops Hub SQL Builder Library
AngularJS and SharePoint I Chris Douglas Senior SharePoint Developer ECS Web:
Presentation transcript:

Farewell XSL, Welcome Display Templates

”I’m a SharePoint consultant with a passion for branding and development” Elio Struyf SharePoint Consultant Xylos Belgium

 The Past & Present  What are Display Templates?  What to do before we start  Creating Display Templates  Troubleshooting  Tips & Tricks

The Past SharePoint 2007 / 2010

Showing the latest documents Libraries CQWP

Show the latest documents of various site collections CQWP Site Collections Search Core Results

Just again another day with XSL

Here & now Office 365 / SharePoint 2013

HTML Comment - JS

Office 365 – SharePoint 2013

Show the latest documents of various site collections Site Collections Crawl SearchCSWP

Comparison Content Query WP Site collection limitation XSLT Instant results Server Side Rendering Client Performance Minor / major versions Content Search WP No site collection limitation Display Templates Requires a crawl Client Side Rendering Server Performance Only major versions

Query Builder

Let’s welcome display templates

What are Display Templates?

What does it do? File extension Title + Path Path Document summary

Logical structure

Where are they used?

Before we start

What to do before we start?

Creation process

Creating a Display Template

The end result

Control Display Template

Control Template Recap

Item Display Template

Item Template Recap

Event Handling

Event Handling Recap

Troubleshooting

Getting to know the values

Diagnostic Template

Ultimate diagnostic display template

Reference Mikael Svenson: var folder = list.RootFolder; var props = folder.Properties; props["vti_indexedpropertykeys"] = "UAB1AGIAbABpAHMAaABpAG4AZwBDAGEAdABhAGwAbwBnAFMAZQB0AHQAaQBuAGcAcwA =|SQBzAFAAdQBiAGwAaQBzAGgAaQBuAGcAQwBhAHQAYQBsAG8AZwA=|"; props["IsPublishingCatalog"] = "True"; folder.Update(); BASE64: PublishingCatalogSettings|IsPublishingCatalog

SharePoint 2007

SharePoint 2010

Display Template Messages

Tips & Tricks

Only do your changes in the HTML files  Doing changes in JavaScript could end up in corrupt files Tip 1

Do not modify OOTB display templates, create a copy instead  Remember the ItemStyle.xsl, we were all guilty Tip 2

Searching where they are located?  Do not make it hard, place them in your own project folders. Tip 3

If you’re writing lots of code  Do it in a separated JavaScript file, that way you can easier debug your solutions Tip 4

Provisioning of display templates? HTML  Only publishing site  Conversion takes time  Needs extra coding JS  Quick and easy  Leave the HTML in TFS Tip 5

Check the values and types you retrieve  This could save you debugging time Tip 6

Dare to open the JS files to check syntax errors  Because everything is written in HTML comments, it’s hard to see syntax errors Tip 7

Want to do DOM changes via JavaScript?  Use the AddPostRenderCallback method Tip 8

Keep in mind that it is CSR (client side rendering)  Keep it clean  Keep it fast Tip 9

Learn to getting used to JavaScript  Very easy to start experimenting  Frameworks like jQuery could simplify the process Tip 10

#SPCSR

Questions?

Clean Search Results WP Display Templates - Provisioning Display Templates What is Required for Display Templates - Showing Alternating Rows - Replacing the OOTB Small Search Input Box Ultimate Diagnostic Display Template - References

THANK YOU