Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SharePoint Tidbits - SharePoint 2013 Display Template
Published May 15 2019 03:08 PM 221 Views

First published on TECHNET on May 30, 2013

Hello All,

 

In SharePoint 2013 the product group has worked really hard to change the way we consume SharePoint data, trying to make it easy to show relevant data.

 

One of the ways that this being done is the Search Web Parts, and one piece of that web part is the display Template.  This template tells the web part two things and it does it’s work by creating an HTML page and a .js file.



    1. What properties to show.

 

    1. And how to display all data.



So you ask how does this work?  How do I create my template?  This functionality is nestled under the Design Manager which means the heavy lifting will be done for you.

 

You would want to open/create  the HTML file using any HTML editor then make it look the way you want and then save the file.  Once it is saved Design manager will take it and create the .js file that SharePoint will use within the webparts.  You can find more detailed steps for editing the html file in these articles http://msdn.microsoft.com/en-us/library/jj945138.aspx , http://technet.microsoft.com/en-us/library/jj944947.aspx .

Version history
Last update:
‎Apr 28 2020 03:03 PM
Updated by: