Hi folks today we are going to discuss little about Display templates in SharePoint Server 2013 as an intro and then in Part II I’ll modify and show you guys the output of my Search page so let’s just jump into the topic. Display templates are templates used in Web Parts that use search technology (referred to in this article as Search Web Parts) to show the results of a query made to the search index. Display templates control which managed properties are shown in the search results, and how they appear in the Web Part. Each display template is made of two files: an HTML version of the display template that you can edit in your HTML editor, and a .js file that SharePoint uses.
You can navigate Display Template by below URL just replace yours
Below under Search you can find two template files starts from Control and Item, again divided into .html and .js. So Search result page when we are looking .html will contain all design related elements like table , divs, panels like that and in .js file all related scripts used in .html.
So if you want to customize you search result page below are the elements and controls we need to take care. And based on our need we can alter, remove, hide and update. In fact, we have full control over the elements visible in this page. Also, we can restrict the audience by viewing and accessing the search contents.
Read some sharepoint online tutorials:
- Testing SharePoint 2016 or 2013 or SharePoint Online REST API using Postman
- Display list data in grid using Rest API in SharePoint Online SharePoint 2016 and SharePoint 2013
Hope this article will be helpful!! Get ready for the next part.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)