0

I have been working with the list item display templates for a couple days now and found that it is very straight forward editing a Display Template on a Publishing site, but not so straight forward on a Team site.  

On the Publishing site there is an HTML page that you copy rename, make your changes, and then import back onto the site. After a refresh, a JavaScript file with the same file name is automatically generated for you and you can now use the new Display Template.

On a Team site the JavaScript files are the only thing present.  I have tried copying a JS from a Publishing site, copying a JS file already there on the Team site and a number of other things without any luck.  The templates seem to be getting information from a file that I am not seeing or something.  For example, on the Team site, there is a file named Item_TwoLines.js, which has a title of “Two lines” but nowhere in that file does it have the words “Two lines.”

Can someone please explain or point me to the procedures to create a Display Template on a Team site where only the JavaScript files are located in the “_catalogs/masterpage/Display Templates/Content Web Parts” folder.

(Visited 2 times, 1 visits today)
Add a Comment