Anatomy of a Display Template Marc D Anderson. Who Is Marc?

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
DRUPAL How to create a website Summer Tech Academy 2010 Mercedes Conde.
1 Web Site Design Overview of the Internet Cookie Setton.
Customizing the SharePoint 2013 UI with JavaScript.
SPSVB 2015 Create Tailored Search Results w/ Display Templates SHAREPOINT SATURDAY VIRGINIA BEACH– JANUARY 10, 2015 MIKE ORYSZAK BLOG:
By Khoa Quach. About Me Khoa Quach SharePoint Technologies MCTS, MCPD, MCSE Co-founder of NIFTIT Specializes in SharePoint Integration Application Development.
Designing for SharePoint Session Overview SharePoint MVP, Marc Anderson, will introduce you to the possibilities of design and customization in.
Chapter 3 Working with Text and Cascading Style Sheets.
Single-Page Applications (SPAs) in SharePoint Using SPServices Marc D Anderson.
Introducing new web content management tools for Priority...
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 14 Introduction to HTML
Working Magic with jQuery and SharePoint Web Services.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
© 2010 Delmar, Cengage Learning Chapter 7 Using Styles and Style Sheets for Design.
Chapter 3 Working with Text and Cascading Style Sheets.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
SPSATL 2014 Create Tailored Search Results w/ Display Templates SHAREPOINT SATURDAY ATLANTA – JUNE 21, 2013 MIKE ORYSZAK BLOG: TWITTER:
University of Sunderland CDM105 Session 5 Web Authoring Tools The past and present A history of web authoring tools and an overview of Macromedia Dreamweaver.
Website Development with Dreamweaver
SharePoint Branding with Design Manager. About James 7 years of SharePoint 2007, 2010, 2013 On-prem deployment planning, infrastructure setup, governance.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Web Site Design Marion Setton
1.Getting Started 2.Modifying Design 3.Page 4.News 5.Events 6.Photo Gallery 7.Newsletter Index Training 15 th Mar., 2011.
Presented by Graduate Design Group 2 Meredith, Jennifer, Cammay and Diane.
Adobe Dreamweaver CS5 - Illustrated Unit D: Working with Text and Cascading Style Sheets.
Introduction to web development and HTML MGMT 230 LAB.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
IT Introduction to Website Development Welcome!
INTRODUCTION TO DREAMWEAVER CS SOFT. OVERVIEW  DreamWeaverCS5.5  Defining a site  Site files  Authoring views  Property Inspector  AP Divs.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Display Templates let you use skills and tools you already know … so Pairing CSS / jQuery with Display Templates is easy Adding refiners allows for.
Welcome to the Minnesota SharePoint User Group February 13 th, 2013 SharePoint 2013 – Developers Track - Client Side Rendering.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Positioning Objects with CSS and Tables
SHAREPOINT & JQUERY. Hi, my name and I am a product manager at lightning tools. I have been working with SharePoint for 5 years.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
SharePoint lösningsområden Collaboration BusinessIntelligence Portal Business Processes Search ContentManagement PlatformServices.
Leveraging Web Content Management in SharePoint 2013 Christina Wheeler.
Basic Web Page Design. Text book: HTML, XHTML, and CSS: Visual QuickStart Guide, Sixth Edition written by Elizabeth Castro. Software: Adobe® Dreamweaver®
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
XSLT? Where we are going, we don’t need XSLT.. About me French, SharePoint Developer and Food Lover Khoa Quach SharePoint Technologies MCTS, MCPD, MCSE.
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.
COMP 143 Web Development with Adobe Dreamweaver CC.
DEV103 – Web Part Transformers – More than meets the eye By: D’arce Hess.
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
Introduction to Enterprise Search Corey Roth Blog: Twitter: twitter.com/coreyrothtwitter.com/coreyroth.
The New Design Manager! Louis-Philippe Lavoie SharePoint Specialist / What does it mean for you? November.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
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.
SharePoint & jQuery. About me Phill Duffy – Product Manager at Lightning Tools Ltd – Author of ‘Pro SharePoint with jQuery’ – MCTS Application Developer.
Benjamin Niaulin Presented at: SharePoint Fest Chicago SharePoint Geek Content Query Web Part – Get it all in one place and style it!
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Anatomy of a Display Template
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Starting to develop a website
Adobe Acrobat DC Accessibility Page Structure
Web Programming and Design
Web Programming and Design
Web Programming and Design
Presentation transcript:

Anatomy of a Display Template Marc D Anderson

Who Is Marc?

Session Overview If you’ve enjoyed working with Data View Web Parts (DVWPs) and XSL in the past, SharePoint 2013’s Display Templates may be just the right thing for you. If you consider yourself a front-end coder, they may be just right for you as well. Display Templates are a new way to format and display data in SharePoint 2013 for search results, the Content Search Web Part (CSWP), Refinement Web Parts, and more. Display Templates use HTML and JavaScript rather than XSL to format data on the client-side. We can develop our own Display Templates and combine them with third-party tools to create rich, powerful content rendering to equal the best websites out there. We’ll go through the anatomy of some of the most useful out-of-the-box Display Templates and look at how you can build your own useful customizations.

Standing on the Shoulders of Giants… Corey Roth for great blog posts and a stellar SPC14 presentation (#SPC3000) Benjamin Niaulin and Yohan Belval for allowing me to use several custom Display Template examples from the Sharegate blog

Display Templates New in SharePoint 2013 JavaScript and HTML driven Documentation is not great, but improving

Client Side Rendering (CSR) Oft-used acronym with SharePoint 2013 Think of it as HTML, CSS, and JavaScript driven rendering of SharePoint data Display Templates are an example of CSR See also: JSLink

Display Templates Used By… Search-dependent Web Parts Content Search Web Part Search Results Web Part etc. NOT Content Query Web Part Note that SharePoint uses the same technology (Refiners, Filtering, etc.) One source of data + many display options = Content Management “Nirvana”

Content Search Web Parts (CSWPs) New in SharePoint 2013 Display Template driven Depends on indexing schedule Continuous crawling helps, but not a panacea

Where Can You Use Display Templates? Any page where you can add a search-driven Web Part Not just for what we think of as “search”

Types of Display Templates

Working with Display Templates Display Templates are stored in the Master Page Gallery: ~sitecollection/_catalogs/masterpage/Display Templates Can access via Design Manager, SharePoint Designer, or Mapped Drive Find a Display Template that is most similar to what you want Copy the existing HTML file and edit that copy

Working with Display Templates When you create a display template by copying the HTML file for an existing display template in the Display Templates folder in the Master Page Gallery: A.js file that has the same name is created in the location where you copied the HTML file. All markup required by SharePoint Server 2013 is added to the.js file so that the display template displays correctly. The HTML file and the.js file are associated, so that any later edits to the HTML file are synched to the.js file when the HTML file is saved. Source: SharePoint 2013 Design Manager display templates (MSDN)

Working with Display Templates Edit the HTML file in the editor of your choice (Dreamweaver, SublimeText, whatever) Upload or simply save in place A little tough to work with because the script is set in comments Moves processing from the server to the client, so be prudent

Display Templates Often Work in Pairs Two parts: Control and Item Think of Control as the “wrapper” and Item as the code which is repeated per item in the result set Use Control and Item templates in different combinations to meet your needs Image Source: SharePoint 2013 Design Manager display templates (MSDN)

High Level Overview Full HTML document (HTML, HEAD, BODY) Declarations: What data do you want to retrieve? Script: Processes the data Markup: How should we display the content? Control_blank. html

Declarations in Display Templates Title mso:ManagedPropertyMapping maps from managed properties to “slots” Mso:MasterPageDescription contains the description shown in selectors Item_Picture3Lines. html

JavaScript in Display Templates JavaScript setup code Script goes inside <!--#_ and _#--> blocks ctx contains the current context Resource: Useful JavaScript to know when working with SharePoint Display Templates (#SPC3000) by Corey Roth spc3000-spc14.aspx spc3000-spc14.aspx Control_List. html

Debugging Tips: Diagnostic Display Template Shows the raw data coming back from the query Great for making sure you have the data you intend Helps ensure you have mapped the correct properties Shows which mapped property “matched”

Debugging Tips: Debugging Tools Just like any client side work, it’s very important to understand the DOM Inspector tools Debugging client side is absolutely possible, but may not be what you are used to

Demos

Useful Links Microsoft SharePoint 2013 Design Manager display templates (MSDN) us/library/office/jj945138(v=office.15).aspxhttp://msdn.microsoft.com/en- us/library/office/jj945138(v=office.15).aspx Display template reference in SharePoint Server Corey Roth Useful JavaScript to know when working with SharePoint Display Templates (#SPC3000) display-templates-spc3000-spc14.aspx display-templates-spc3000-spc14.aspx 4 tips for using jQuery with SharePoint Display Templates display-templates.aspx display-templates.aspx Changing the look of Search using Display Templates and CSR Sharegate Display Template Examples Animated Menu Display Template (Benjamin Niaulin) Image Slider Display Template (Yohan Belval)

Contact Information Bloghttp://sympmarc.com SPServiceshttp://spservices.codeplex.com SPXSLThttp://spxslt.codeplex.com Bookshttp://sympmarc.com/books The Middle Tier Manifestohttp://bit.ly/middletier