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

learn more… | top users | synonyms

0
votes
1answer
32 views

Display Template: Retrieving user properties from person field

I've been searching high and low for a couple of days for a solution, but can't find anything that fits. I've seen a lot of blogs refer to the Srch.U object and then using various methods. I've seen ...
0
votes
2answers
29 views

SP2013 - Change refresh interval of “Search Results” webpart

Is it possible to change the refresh interval of a single "Search Result" - Webpart? Currently it updates every 15 minutes. I've created a search result + display template which queries for a list of ...
0
votes
0answers
7 views

jQuery toggleClass in Display Template

I have a display template that I'm attempting to have an accordion effect on. I have used this in the past (but not with display templates): AddPostRenderCallback(ctx, function () { $( ...
0
votes
0answers
16 views

'Search on Yammer' link in search center refiners

I have a heavily branded site I'm working on and can't find where the "Search on Yammer" link is being populated from. It appears within the search refiner/filter web part in the left column but none ...
0
votes
0answers
15 views

Display template add site owner

I have created a display template for a search results webpart. How can I display the site owner in the results. The search query is returning sites that a user is a member of.
0
votes
2answers
36 views

Query the month portion of a SharePoint column in the query text of a Display Template

How do I query against the month portion of a SharePoint Column in a Display Template? I've added a Content Search Web Part (CSWP) to my page and I need to restrict the number of items returned from ...
0
votes
1answer
18 views

Making my copy version of Control_SearchBox.html

Within SharePoint 2013, I am in the Display Template -> Search Folder. I see the Control_SearchBox.html page. I downloaded a copy of this file. I made tweaks to it based on some custom branding ...
2
votes
1answer
39 views

SharePoint Search Display Template

I am working on Office 365 and I need to fetch Value of Location, Start date and End Date fields (Calendar fields) in Search Display Template (Item_CommonItem_Body.html). But everytime it returns ...
0
votes
0answers
33 views

Unable to display mapped property on display template

I have mapped "otherTelephone" to the "Extension" field in my managed property mapping, but I am unable to now display this on a custom display template. In the display template, I have the following ...
0
votes
1answer
43 views

In a search display template, is there a search property available for the actual text (k=…) in Srch.U or any of the search objects?

I'm trying to add the searched text value to the query string in the url (<a href='...?searchText=[something]'>Title</a>) In the search display templates, I see ctx and Srch objects ...
0
votes
1answer
59 views

Content rollup and display template issue

I am using this custom display template with a search results web query to roll up tasks. http://www.surfray.com/blog/2013/06/12/aggregate-your-open-tasks-with-sharepoint-2013/ I have followed the ...
0
votes
0answers
51 views

Display Template and Item Template not showing in Content Search Web Part

I am facing a weird issue. When I'm uploading custom Display Template JS file and custom Item Template JS file using an Add-In, for some reason it is not showing in the webpart properties. But when I ...
0
votes
1answer
60 views

Get Item Child Count in search results

I have a picture library which consist of 2 content types: "Photo Album" and "picture". I also have made a search site to search the albums. I have made a custom item display template which show the ...
0
votes
0answers
46 views

Add button to view display form

I need help to add more info button to a Content search web part in SharePoint 2013 to this display template. This button will be able to open the "display form" of the Document by document ID link ...
1
vote
1answer
31 views

Search box not taking custom display template

I am wanting to change the text inside the search box so I created a new display template and referenced it in the master page like so: <SearchWC:SearchBoxScriptWebPart ...
1
vote
1answer
28 views

Add content to a rich html field on a pagelayout

I have a page layout and in this page layout there is a rich html field. I am wanting this rich html field to have 2 columns whether it be done by a table or two divs within the rich html field. Is ...
0
votes
0answers
58 views

How to Group Search Results Using Default Display Templates

Is there documentation on how to create groups for search results, preferably using managed properties? All that I was able to find on it is using query rules, result blocks, or this great tutorial: ...
1
vote
0answers
30 views

Missing Display Template folder

recently when we use "search this site" searchbox this Error displayed: "Display Error: The display template had an error. You can correct it by fixing the template or by changing the display ...
0
votes
2answers
53 views

AddPostRenderCallback doesn't fire on subsequent page clicks

I have an AddPostRenderCallback that is working correctly when the page first loads but when I click to the second or third page of results it doesn't fire again. It's just some additional jquery and ...
1
vote
1answer
36 views

Get system name and label from term in Display Template

I'm retrieving a taxonomy field from a search request in a Display Template. The content of the field looks like this: termField.inputValue "GP0|#f76c1099-c0e6-f6df-7814-cc7ea541b129 ...
1
vote
0answers
59 views

2013 - Get URL and picture from mysite in Search result webpart display template

I have a search result webpart and want to display users there. The users are in a list (the field is a people picker). I registered the field as a managed property. I can get the name of the Person ...
0
votes
1answer
76 views

Search display template for special column types like Person or Group

I have lists of a special item content type that I list using search. These list contain for instance a column of type Person or Group. In the lists the columns are being displayed as "Name (with ...
2
votes
2answers
44 views

Display Template Syntax highlighting

I am a WebStorm user.. never touch Visual Studio All Display Templates in HTML are comments, and displayed accordingly in my IDE Does Visual Studio (Code) do syntax highlighting and intellisense on ...
0
votes
2answers
52 views

Adding onpage CSS in Control Display template

I am trying to add CSS in <style> tag in Control Display template. But its not applying that CSS. Its taking inline CSS but not taking when adding inside <Style>Tag PS: New to display ...
1
vote
0answers
49 views

SP2013 Display template , slider

I have used content query search web part & applied slideshow but that is not working properly. I am trying to create a news slider with big image which will come from a list , it is showing title ...
1
vote
1answer
54 views

Render UL and LI in search result display template

I am customizing sharepoint search result web part and trying to render Ul and li tags, following are my control and item template html files my control template my item template result but ...
0
votes
1answer
58 views

Display template with managed property based on column of type Hyperlink or Picture

I have added a column with content of type "Hyperlink or Picture" to some of our lists of a particular content type (SharePoint 2013 on premises). In the lists the data is being displayed pretty as a ...
3
votes
0answers
154 views

ctx.CurrentItem undefined in new function

I am editing a item display template in SharePoint 2013. The following problem occurs: ctx.CurrentItem becomes undefined in a custom function. How can I solve this? Here is a little code snippet: ...
2
votes
1answer
57 views

Async wait till variable is set in the display template

I have a problem with excuting the script in the right order. I have a custom.js which is loaded at the top of the masterpage. The following function is included: var results; var followers; ...
1
vote
0answers
28 views

Collection has not been initialized(async)

I am trying to create with search(display templates). To return a list with only the followers. The following error is throwing when running: "Error: The collection has not been initialized. It ...
1
vote
1answer
41 views

Search display template

In a previous Sharepoint set-up a created a sub site /search and copied my custom display template in the folder: /_catalogs/masterpage/Display%20Templates/Search The folder contains HTML and ...
1
vote
1answer
64 views

Display template for FAQ search page

I have a number of FAQ lists spread around my site collection (SharePoint 2013 On premises). These lists have special content type, "FAQ Item", that basically has columns for Question, Answer, Area ...
2
votes
0answers
66 views

modify the picture width and height in a content by search webpart display template?

I created a custom item display template. This custom item display template is using my custom hover display template. In my hover display template I get a managed property CustomImage. When I add ...
0
votes
0answers
27 views

Content Search displays in template control: “External template reference”

I have two site collections and each has the same JavaScript display template file which displays calendar items in the content search web part. On one of the site collections the display template is ...
3
votes
1answer
83 views

Office 365 : CSWP & Display template : display custom image when no results

I'm a little stuck on a problem where i'm sure you could help me : What i want : I want to add a Content Search Webpart to a page, which check all the items added today in a certain Image Library ...
3
votes
1answer
110 views

DateTime.Now in KQL

In SP 2013 on-prem, I am using display template and a list to show alerts on the front page of the intranet. I want the alerts to be showed from the list when the list item has a start date that is ...
0
votes
1answer
32 views

Managed property for changes on site?

In SharePoint 2013 on-prem I am using display templates to list out sites. I need to show the sites that have had any kind of updates lately. I am looking for a property, that is a date and time ...
6
votes
1answer
78 views

Show correct content type with custom display item

I am using the following code in a custom display template for my search results to show the correct content type of an item: _#=ctx.CurrentItem.ContentType=#_ The good part is that it returns the ...
2
votes
0answers
93 views

Sharepoint Search Result Display Template not showing custom managed metadata properties

I have expanded the Item_Person display template to include a couple of custom managed metadata properties. When this template is used in a person-only search, these properties gets data. However when ...
1
vote
0answers
25 views

'Self Search / Put your profile to work for you' always empty

When I do a 'Self Search' in SharePoint 2013 the counters below 'Put your profile to work for you' are always 0. I used reflector to determine to logic behind this functionality and looks like the ...
0
votes
0answers
29 views

SP2013 on-prem how to check if search service is working?

We have an onsite 2013. Our team doesn't have access to central admin. We are using cross-site publishing and a lot of display templates -- as well as some ajax and spservices to query the search ...
0
votes
0answers
45 views

Missing Display Templates

I'm having an issue where I can't select any display templates beside "lists" in a Content Search Web Part. The specific one needed is slideshow. I went into the Master Page Gallery and both the html ...
4
votes
1answer
132 views

Display template not updating outside server?

We have a SharePoint on-prem 2013 farm with 2 app, 2 WFE, 2 search and 2 SQL servers. We recently updated a display template and added a new Content Search web part. While we can see that new ...
2
votes
1answer
55 views

How to handle & and + characters in hyperlinks in the search People hover panel template

In our SP Server 2013 environment we have an employee directory. The hover panel that shows up next to a result shows the Department name of an employee. This is a clickable hyperlink. When a user ...
1
vote
1answer
206 views

Sharepoint 2013 : Increase width and number of characters in search refiner web part

Is there any way to increase the width and number of characters in search refiner web part in SharePoint 2013? I remember there was this option in SharePoint 2010. I know we can tweak CSS and ...
0
votes
1answer
52 views

Hide link to document library in Search SharePoint 2013

I have requirement from customer where they want to hide the link to document library. Marked yellow in the following picture: Is it possible to do it? If yes, how?
0
votes
1answer
49 views

Item_CommonHoverPanel_Actions display template: Click event doesnt fire second time

I have added a custom action "Test Link" to item_CommonHoverPanel_Actions display template as shown in figure below: Every thing works fine if i hover over Test 1 and Click on "Test link". But if ...
0
votes
0answers
116 views

Content search web part results count is inconsistent per page

I am using Content Search web part in a Sharepoint Online site page in which I have modified display template to have custom paging. - Custom paging code referred from : ...
0
votes
0answers
106 views

Missing ctx.CurrentItem element in search result masterpage

At my search display templates I have a 'item_person.html' template, it shows the search result of profiles. At 'peopleresult.aspx' masterpage a search result gives us WorkPhone value but at ...
2
votes
2answers
191 views

How to check if picture exists in item display template?

I tried to check in my custom item display template if a picture exists by url. Sometimes the site Logo is set to some path of an picture, but the picture doesn't exist anymore. I would like to ...