Skip to main content

Questions tagged [display-template]

Display templates in SharePoint Server 2013 are templates used in Web Parts that use search technology 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.

0 votes
1 answer
129 views

Convert True/False value to Yes/No in Search Item Display Template

We are using third party tools for record management in SharePoint 2019 and we have custom search page to display custom search results. For this managed properties have been defined mapping to third ...
Raman's user avatar
  • 1
1 vote
0 answers
1k views

Handlebars: How to hide text if variable is blank

I've created a custom Sharepoint Search Result page using a list template, and I've added a line at the bottom of each result that shows Category: URL The URL is obtained from a custom column that is ...
Ronnie's user avatar
  • 111
0 votes
1 answer
543 views

How to display Custom Column URL in display template

I'm creating a custom search result page in SharePoint Online using the PnP Modern Search Web Parts. I've created a custom column called "_CatURL" of type 'hyperlink', where I've added a URL ...
Ronnie's user avatar
  • 111
1 vote
1 answer
34 views

Selecting search result template by result type is missing mapped properties in template

I've used the techniques in this tutorial to add a couple new managed properties to my custom item template which is selected by a search result type and has been working for several years. The ...
George Champlin's user avatar
1 vote
0 answers
31 views

Search Display Template code no longer able to access CurrentItem.UniqueId

I have a SharePoint Online site that uses some custom Search Display Templates to display content from Document Libraries and Picture Libraries. The JavaScript code had been running fine for a couple ...
Bryan's user avatar
  • 11
0 votes
1 answer
256 views

How to change "There are no items to show" message for Item Display Template?

We are using SP2016 enterprise and I am trying to customize a Item Display template for a Content Search web part. My work is based on existing template under Master Page Gallery > Display ...
Mark L's user avatar
  • 4,075
1 vote
1 answer
134 views

RecordPageClick parameters

I need to change the search criteria paramater that is passed onto RecordPageClick method vis JavaScript I am hoping to do this in the display template or the search page template What is the best way ...
user3799810's user avatar
0 votes
1 answer
175 views

How to call a JavaScript inline of Item display template?

I am editing an Item Display Template (for a content search web part) on SP2016 enterprise. In the display template (Item_LargePicture.html), I inserted a JavaScript function to randomly return a ...
Mark L's user avatar
  • 4,075
2 votes
0 answers
168 views

Sharepoint 2019 - modify search result item template to return Office URI Schemes

I am looking for a way to open word, excel, ppt files in a local client application. For any mysterious reasons that work in document libraries but not in search results. I know that it works if I ...
User44311465's user avatar
0 votes
1 answer
189 views

Managed Properties created for list column showing empty in Item Display Template

Good Day! I have created a Description column in my list and created managed property with ows_Description as the crawled property. The column type is Multiple lines of Text. I am not able to retrive ...
Sooraj Nair's user avatar
1 vote
3 answers
2k views

SharePoint List Template using Handlebars

I have a SharePoint Online list that has a column of type "Hyperlink" named URL. The Hyperlink column in the SharePoint list had two fields by default, "Enter a URL" and "...
Gregg Machel's user avatar
0 votes
0 answers
31 views

Display Template Error

I've customised a display template for a catalogue of images, and upon clicking the thumbnail, I want the image to download. So I changed the script from: <div class="zoom-...
Koloris's user avatar
  • 11
0 votes
1 answer
470 views

SharePoint Template Grouping Using Handlebars

I have a SharePoint Online list that includes a title, URL, and a category. My category options are "Forms" and "Tools". I want a HandleBars template that will loop through this list and group by ...
Gregg Machel's user avatar
0 votes
1 answer
88 views

display template not chaged until after refersh using ResultScriptWebPart

I'm implementing search center in server side(c#) with ResultScriptWebPart class in sp2013 farm. it a dynamic page with control template and item template that are changing on the fly depending on the ...
Adleron's user avatar
  • 53
0 votes
1 answer
160 views

How to customise the Control_SearchResults.html to change the href link

I would like to change the url link/path that is returned in search results based on the list name. I have downloaded a copy of the Control_SearchResults and the item_Default templates i just don't ...
naijacoder's user avatar
  • 4,368

15 30 50 per page
1
2 3 4 5
24