Customising the Content Search Web Part – Part 3 – Going old Skool with XSLT
This is the third post in a series I will be writing on the Content by Search Web Part (aka CSWP).
- What you get in the box
- Going Old Skool with XSLT (this post)
- Packaging & Deployment in Visual Studio
Now I am admittedly going to cop out here. I was originally intending to write this up in detail but to be honest it has already been done (very well) before.
He not only shows you how to hook up your JS Display Template with a server-side XSL file, but also shows you how to deploy the files and it’s primary usage (as a Search Crawler output).
If you want to use this method for all of your web requests then you can set the AlwaysRenderOnServer property of the CSWP to “true” and it will always use your XSL template file.