Saturday, December 8, 2012

SharePoint Search - how to reate a custom template view

In SharePoint 2013, rather than using XST, it can be created in html and javascript.

1. Create the template

In the Search Site, go to Site Settings -> Master Pages and Page Layout
In the Display Templates / Search Folder,
Based on the existing template and create custom template.html and upload to here.
In the page properties, make sure content type is Item Display Template and the target control type is for Search Results.

2. Set up the template to be used

In the search site, go to Site Settings -> Result Types,
Create a new Result Type and select it to use the new template






No comments: