Category: Display Templates
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.
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.
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.
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.
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.