Display Templates

How to load scripts that are required for your item display template rendering

September 21, 2017

Based on the number of questions I receive in my mailbox, I can see that display templates are not yet forgotten. A long time ago, I wrote about how to correctly include scripts into your display templates. Read more: Correctly including scripts into your display templates The main issue when using the default functions (for example $includeScript) to include scripts into your templates, is that they are loading your scripts asynchronously.

Read more

Sharing my managed metadata refiner display template

March 17, 2017

Do you have a refiner template that shows the refiners based on the hierarchy of a term set, or can you explain how to build it? These are probably two of the most asked questions I received the last couple of months/years. Back in 2015 I created such a template, but never shared it until today.

Read more

Things to check when something went wrong with your display template

July 6, 2016

Default message when there is a problem with your template I receive a lot of questions about why display templates are not working or why managed properties do not contain a value. Most of the times the solution is similar to what has been already asked before, so I thought of writing this down in order that it can help everyone with similar issues.

Read more

A new way of developing display templates

June 6, 2016

Creating display templates for SharePoint is a fairly easy job, but we all have our own ways of developing them. Over the last couple of months, I barely touched managed code. Everything I do these days is mainly achieved by using JavaScript and/or TypeScript in combination with Visual Studio Code. As I really like this new way of working, I started testing how this could ease my display template development process and it turned out to be very useful.

Read more

Rendering video results with the use of display templates

April 21, 2016

Last week when I was configuring a content search web part to show the latest videos from the Office 365 Video Portal. I saw that the default video template which is available is not so feature rich as I expected. The default video display template shows only a preview image with a link to the actual video.

Read more

Starter JavaScript display templates for your projects

April 13, 2016

A while ago I wrote a post about my 10 tips and tricks when working with display templates. Info: you can find the article here: My 10 SharePoint display template tips and tricks In that article, I highlighted two ways of how you could provision your display templates to a SharePoint site.

Read more