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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
43 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
0 votes
0 answers
206 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
  • 101
0 votes
1 answer
169 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
  • 101
0 votes
0 answers
49 views

Display Custom Property on Search Display Template (SharePoint Online)

I'm currently trying to display a custom page property in the search result display template (Item_CommonItem_Body) of a SharePoint Online Classic site. I have created and added the managed property ...
Mark Shipman's user avatar
0 votes
0 answers
14 views

Updates to Display Template not showing

I have made a change to our Item_Person_FPS.html file (this copied from the OOTB Item_Person.html to add some additional display items). The code is as follows: var hasOperatorNumber = !$isEmptyString(...
Anngela's user avatar
  • 23
1 vote
1 answer
25 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
25 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
176 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,055
1 vote
1 answer
101 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
134 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,055
2 votes
0 answers
113 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
124 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
24 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
372 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
55 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
131 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,226
0 votes
3 answers
38 views

Manage Properties Issue SharePoint 2013

I am not able to get default SharePoint column in search display template. I have mapping to default column crawl property with custom manage property. How can i resolve this column in search result?
Sanjay's user avatar
  • 1
0 votes
1 answer
145 views

How to use Display Template(Search result) to change the dispform.aspx and editform.aspx to a custom one?

I have setup a result source and currently when i do a search it returns some pages with allitem.aspx,disform.aspx and editform.aspx but i want to do the following:- - Remove the allitems.aspx for ...
naijacoder's user avatar
  • 4,226
0 votes
1 answer
305 views

Cannot seem to access Calculated column in Display Template via Managed Property mapping

Here is my situation: I have a test/development site on SharePoint Online/Office 365 called TestSite3, and within that site a sub-site called TestBlog3 (a Blog site for making Posts). I want to use ...
dtkdanwork's user avatar
0 votes
1 answer
238 views

Search result for images in a document library aren't working

We have a document library that includes some images -- as well as more traditional docx, pdf, xlsx, etc. In the search results that include the images they are being displayed using the Item_Default ...
Rothrock's user avatar
  • 3,010
0 votes
1 answer
179 views

Display templates, managed properties showing null

In Sharepoint Online,trying to display one site collection list columns in another site collection using search and dispaly templates List:/sites/UAT/Lists/SearchTestList/AllItems.aspx 1.Mapped the ...
Satish's user avatar
  • 1
0 votes
1 answer
253 views

SP Online - custom Display Template - square boxes instead of font icons from Office UI Fabric icon set displayed in checked-in state

I encountered a problem, that it displays only empty square boxes instead of nice (custom font) images from generated Office UI Fabric icons set, since I change the state of the with the web-part to ...
rychlmoj's user avatar
  • 239
1 vote
1 answer
230 views

Creating custom display template with search result web part

I am required to create a display template programatically which is via visual studio and I am really new to this. Can anyone share with me a sample source code for creating display templates and how ...
A_B_C's user avatar
  • 13
0 votes
1 answer
483 views

Display Template: extract Item Summary

Creating a custom display template for search we're facing this request: the search result item should show first the item hyperlink, then some managed properties and finally the item summary. In the ...
Celophysis's user avatar
0 votes
1 answer
119 views

Where are the css files used in search results stored in SP Online?

I'm customizing a search display template. There is an is a nice transparent overlay on a photo where I display text, but my text is no longer fitting in the overlay because I've added an additional ...
Martin Muldoon's user avatar
0 votes
1 answer
257 views

How does property mappings work in Content Search Web Part

I am using the Content Search Web Part to display some drone photos. In the shot below, it is showing each building with the File Name and the date/time of the photograph beneath it. I would like to ...
Martin Muldoon's user avatar
0 votes
1 answer
119 views

Using 'replace' for URLs in Search Results display template?

I am building a work-around for an issue I've encountered with a product catalog. For some reason, the CSWP and Search Results web part are displaying spaces in the managed metadata term at the end of ...
Scott Larson's user avatar
0 votes
1 answer
81 views

Can jQuery Datatables in a search results web part return more than 50 documents?

I've hit a wall on figuring out how to remedy this issue. Im currently developing a search center page with jQuery datatables and control and item display templates. The search results webpart is ...
Ndeezy178's user avatar
0 votes
1 answer
71 views

Color Code Due Date in Display Template to Red

I have a great display template that is working almost as expected. I now have a request to have the Due Date show RED once it is past due. I am still learning how to change things in the display ...
Dorinda's user avatar
  • 65
0 votes
1 answer
309 views

Display Template Date Format not working to display mm/dd/yy Please Help!

I have a display template that is working, however it is not displaying the date in the format that I want. I need it in the following format MM/DD/YY I had someone trying to help but they bailed on ...
Dorinda's user avatar
  • 65
0 votes
1 answer
501 views

Display Template format Start and Due Date MM/DD/YYY

I have a display template that is working awesome but for the formatting of the Managed Property not displaying the date correctly. I do not want the time included in the display. I am still ...
Dorinda's user avatar
  • 65
0 votes
2 answers
231 views

Making users display name searchable in display template

I have a search display template showing some documents based on a content type and one of the fields DocOwner, which is a people field. Using javascript it is simple enough to get the user's display ...
Kasper Bo Larsen's user avatar
0 votes
1 answer
64 views

Search - How to change default boolean operator from AND to OR

I believe this is controlled by the Search Box Display template, but I'm not 100% sure. Does anyone know? Thanks!
Martin Muldoon's user avatar
1 vote
0 answers
28 views

Modify the Search Navigation display template

Can we modify the search navigation web part display template? I wish to add a bottom border to the selected page navigation header.
Ashish's user avatar
  • 881
2 votes
1 answer
578 views

SharePoint 2016 Managed Property not returning values in Search Hover panel

I have a Site Column "Doc Description" multiple line of text, added that in both list and library .Then Added few records in list&library published,created managed properties did full crawl and ...
raj's user avatar
  • 21
1 vote
1 answer
186 views

Search display template for content search web part for task aggregation

In a site collection, I have about 4 task list setup each on separate subsites. So on the root level, I am using a content search web part and through query, I am showing tasks from all of these 4 ...
mdevm's user avatar
  • 1,225
0 votes
1 answer
398 views

Custom refiner display template: Possible to change refiners' display names?

Does anyone know if it's possible to create a custom refiner display template that renders the refiner values differently to their native values? I have a managed property Manager act as a refiner: ...
colonel_claypoo's user avatar
1 vote
0 answers
80 views

Apply custom Item Template to Promoted Results

We have hybrid search enabled in our SharePoint search environment where-in we are displaying federated search results from SharePoint Online tenant in our on-premise Search site. We display few top ...
Ashish's user avatar
  • 881
1 vote
0 answers
156 views

SharePoint 2013: Group Search Results by Site Name

I have added a Search box and a Search Results web part with the query which retrieves documents from different subsites. Now, what I want is to group this documents by using Site Name and show the ...
Ganesh Sanap - MVP's user avatar
0 votes
1 answer
159 views

SharePoint Display Templates doesn`t work with hyphen

As it seems hypens in Managed Properties are still an issue in SharePoint 2016 / 2013. I had an issue with an existing business application and did some tests to find out more. I created two managed ...
Leviani's user avatar
  • 152
2 votes
1 answer
571 views

How to change Search Display Template for Person Result Type

I am trying to add a link to the Hover Panel of the People Item Display Template. I've can't change the Display Template for the Person Result Type. It seems you can't edit Result Types provided by ...
Martin Muldoon's user avatar
1 vote
1 answer
124 views

SharePoint Hybrid Search - Find published News in SPO

SharePoint Online provides publishing "SharePoint News" in modern sites. If you use SharePoint Hybrid Search you can find content from SPO on premise and vise versa. I would like to provide a ...
PhilFancy's user avatar
  • 1,107
1 vote
0 answers
72 views

output my search results filters after the initial render SharePoint 2013 / O365

I'm trying to write a custom filter display template. My template requires some external calls, and thus requires some async work. How can I output my filters after the initial render? I have to read ...
Utkarsh's user avatar
  • 21
0 votes
1 answer
252 views

Filter on the basis of Site Title (O365)

I am showing data from 30+ different SharePoint sites. In the search results page i want to filter the result on the basis of Site Name or Site Title. However in O365 we do not have option filter on ...
Utkarsh's user avatar
  • 21
0 votes
1 answer
528 views

Lost preview in hover panel after applying custom display template

Similar to this question: Custom Display Template, on one content type, lost preview on word files, powerpoint, etc, I have created one content source where multiple content type data will be fetched. ...
Pradip R.'s user avatar
  • 2,299
1 vote
0 answers
241 views

SharePoint 2013 Retrieve URL from Publishing Hyperlink column in Display Template

Working on a site in SP2013, I have created a custom display template to display a series of items. The problem is when I reference the publishing hyperlink field in the html as the src value of my a ...
bberndt's user avatar
  • 143
0 votes
1 answer
371 views

Sharepoint 2013 Display publishing image using content search webpart with custom display template

I am working on a site in SP 2013 and want to display a series of items each with an image from a publishing image field in the item. I have created a custom display template but am having issues ...
bberndt's user avatar
  • 143
1 vote
1 answer
66 views

Custom display template for videos working for 1 of 4 videos

I've customized the Item-Video display template to surface data from some custom columns. It's working perfectly on 1 of the videos, but not the other 3 that I uploaded. They are all MP4's in the ...
Martin Muldoon's user avatar
0 votes
1 answer
135 views

How to customize Display Template Hover Panel Header

I'm trying to customize the Header portion of my hover panel. The header is called in the Default Hover Panel like so: <div id="_#= $htmlEncode(id + HP.ids.header) =#_" class="ms-srch-hover-...
Martin Muldoon's user avatar

1
2 3 4 5
8