Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

1
vote
0answers
9 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 ...
0
votes
0answers
62 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 ...
0
votes
1answer
39 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 ...
2
votes
1answer
20 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 ...
1
vote
1answer
17 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 ...
1
vote
0answers
30 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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
33 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. ...
1
vote
0answers
20 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 ...
0
votes
1answer
67 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 ...
1
vote
1answer
26 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 ...
0
votes
1answer
28 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-...
0
votes
1answer
127 views

Changes to Display Template not appearing

I have customized the Item_PDF Display template. I would like the hover panel that is displayed to be based on the Item_Person_Hover panel. The goal is to present expertise information about the ...
2
votes
1answer
37 views

Search Display Templates - How to display hover panel on click rather than on hover

I'd like to customize my Display Template so that the Hover Panel appears only when a user clicks on an item in the search result. The default behavior is the hover panel appears when a user mouse's ...
1
vote
1answer
42 views

Running custom function before SharePoint renders page

Some Background I have a publishing site that presents documents with stylized icons using some custom display templates and views (with CSR). Document icons are rendered using fontAwesome classes ...
2
votes
1answer
198 views

PDF Files not opening when clicked from the content search web part

I wrote a custom display template for a content search web part that shows recent documents edited or modified by a user. I added hover functionality as well to allow users to hover. For some reason ...
0
votes
0answers
11 views

Get Results Source Path at Control Display template

I'm working on a Content Search Web Path with custom display templates in SharePoint Online. I've set this webpart's path, to retrieve items only from a list. I want to get the list Name on the ...
0
votes
1answer
41 views

Random seed in search result webpart query

I am looking for a way to randomize a result table. I used to do this via REST-API like this var randomSeed = parseInt((Math.random() * 1000000), 10), searchUrl = _spPageContextInfo....
0
votes
1answer
122 views

How to deploy display templates with pnp?

On SP 2016 on-prem I am trying to write a console application to upload files, mainly display templates. I create a dummy site collection, and upload display template in "_catalogs/display templates/...
1
vote
1answer
26 views

“Converting” project from old to new technology?

I am working on a SharePoint project which started a couple of years ago. It started with SP 2013 on - prem, and we are now on SP 2016 with feature pack 2. In the project we used the Powershell based ...
0
votes
0answers
15 views

Is it possible to have multiple hover panels in the same display template?

I would like to know how to create multiple hover panels in SharePoint online search display templates. I am using this but it does not seem to make any difference: var id = ctx.ClientControl....
1
vote
0answers
21 views

How to modify the url in the search results?

I am using sp 2013 on prem. I created a new page and used the search result pagelayout. On this page you have the OOTB refiner, search box, search resultscript webparts. I would like to clone some ...
0
votes
0answers
37 views

Corrupted control template, but control does not exist on ascx

Corrupted control template. Please check RenderingTemplate of "TextField" in the control template ascx file I was receiving above error while working on custom column type, for debug purpose i ...
0
votes
3answers
256 views

Managed property not showing in Display template

We have a BCS-model which gets data from a database outside of SharePoint. We make data from the BCS searchable by creating managed properties and then mapping them to the auto generated crawled ...
2
votes
1answer
259 views

display List/library url in display template

I am trying to add the url of libraries in the display template. ListUrl does not return any value. So I thought using javascript to replace the filename to "". However it is throwing an error: ...
0
votes
0answers
29 views

How to have full hover functionality for a content editor web part?

One of the Projects I am working on, I have a content editor web part that shows recent documents which is user based. I customized the display template and added some code to have a full hover ...
0
votes
1answer
27 views

How to encapsulate a .mht file in sharepoint online

I have some .mht files and I want to display in a sharepoint page. I'have tried the "content editor" but seems like in only work with HTML files. There is some solutions ?
0
votes
0answers
34 views

Increasing the page numbers of paging in SharePoint search

I am looking for some help on search display template. I need to change the code in Control_SearchResults.html file to increase the no of page numbers. Can someone please help me to get this. On ...
0
votes
0answers
8 views

Giving the user update feedback om long running js update in Search Display template

I have a number of Search display template where I update the objects in each row using a JavaScript. This is an async update and currenly the UX is kind of crude, as I charge the cursor to spin and ...
0
votes
2answers
363 views

Add modified date on search result of SharePoint 2013

I need the modified date of the item when search results displayed. kindly help me doing this. I referred some MSDN article, where they have mentioned editing HTML file of display template on "Design ...
0
votes
0answers
27 views

Sharepoint search sorting clear filter

I have search results getting sorted on click of a checkbox. I did this by using <a href="#" onclick="$getClientControl(this).sortOrRank('Priority-HighToLow');return false;" id="testButton">&...
0
votes
1answer
43 views

SharePoint search results not getting displayed to any user after adding new content source

I just added a new Content Source, Result Source, and Result Type in my on-premise SharePoint 2013 Search center. My search center displays results based on result types. When I search content, I can ...
0
votes
1answer
65 views

SPServices in a Display Template to retrieve blog comments

I have built a display template and used the CSWP to show blog post comments and likes, however, being a CSWP it only updates once the search runs. I want the comments or likes to update immediately ...
0
votes
0answers
19 views

Include query rule promoted item in result count

We are using Query Rules to provide some promoted items linking to resources not on our site. For some searches there might be two or three promoted links returned. This is all working well. On your ...
0
votes
0answers
10 views

How to implement display template in Sharepoint 2010

I want to show Wiki page library wiki pages as tile icon on a page. In SharePoint online, we can achieve it using content search Web part and change the display template. How do i achieve the same in ...
0
votes
0answers
32 views

How to create a SharePoint Search Result Item Type programmatically?

I have a requirement to update the Display Template for a given content type, I do understand that Display template can be deployed and published through "Feature activation". However, I see that New-...
0
votes
1answer
306 views

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

Currently working on a site in Sharepoint 2013, I have created a custom item display template to display links to related pages across the site on a page via the content search webpart. The items are ...
0
votes
0answers
90 views

Check Promoted Results on custom display template page

I have some results sources defined for my crawled content. I also have some custom display templates defined for my results sources which I using to display returned records. Whenever the results ...
0
votes
2answers
2k views

How to change the search result display template based on list name?

I want to format the search result based on the list name. For example: If data is coming from ListName1 then I want to change the item URL in the search result. For all other result, I don't want to ...
1
vote
0answers
84 views

Display template - Managed properties column display name

I'm creating a custom display template, where I want to show the metadata field name and it's value. The problem is that the Managed Properties use the internal name, and not the display name. How ...
0
votes
1answer
51 views

search displaytemplate

I have the below code <td class="ms-cellstyle ms-vb2"> <!--#_ var clickType = ctx.CurrentItem.csr_ClickType; if(!clickType) {...
0
votes
1answer
106 views

Error on Hover Panel of Web page“We didn't find any more information about this result.”

I added Hover pannel to content search web part display template. I used Default Sharepoint"Item_WebPage_HoverPanel.js" to show web page JS. then I can see the only name of the page. and on the body ...
0
votes
1answer
245 views

An Approved Control Display Template Is Not Available in Web Part Settings

Can anyone suggest how I enable the out of the box control display template, List with Paging? In a SharePoint 2013 environment, in the web part settings for Content Search web parts, the out of ...
0
votes
1answer
299 views

Custom Search Display Template in SharePoint 2013 Foundation

In SharePoint 2013 Foundation, I have created a custom display template for search and have created a couple of custom managed properties. Due to an absence of the Publishing Feature, I only have the ...
0
votes
1answer
92 views

Calling a hoverpanel in a search result table

I am working with SharePoint 2013. I want to show my search results in a table view. I need this for the global search, not a webpart. I have modified ( with help from internet) the search display ...
0
votes
1answer
25 views

Changing back from default

terminology in this question is probably wrong since I am a new user When I tried to delete an app from Sharepoint a prompt told me that I had to change the layout of my website before I could ...
0
votes
1answer
56 views

The webparts in my search site have stopped working

Currently we have a version of sharepoint 2016 on-premise. The search site use to work fine but then suddenly one day they cannot find the js file for the webpart. i have confirmed and the js files ...
0
votes
1answer
177 views

Custom Javascript not being called on Search Display Item Template

I cannot determine why javascript function is not being called when paging through search result pages. On the first page load js executes as expected. When I do a hard refresh it executes ...
1
vote
0answers
102 views

How to display event dates with optional times in WebPart

In our Events web part we want to display Start & End dates for Calendar events. Some of our events are multi-day and probably have a midnight time, and these we want to display like so: e.g. 29 ...
2
votes
0answers
208 views

SharePoint Online Search Display Template

I am working on customizing the Search Results page by modifying the item display template. I have managed to add managed properties and display it in search results. The requirement is that I need to ...