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
23 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 ...
1
vote
0answers
11 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
22 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
23 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
24 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
40 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
79 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
0answers
29 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
25 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
27 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
40 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
25 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
10 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
39 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
31 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
26 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
56 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
37 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
18 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
22 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
32 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
82 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
33 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
72 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
41 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
28 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
73 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
54 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
99 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 ...
0
votes
0answers
16 views

SharePoint 2013: Brief form to unique page on submit

The background: creating a communication brief library for employees to read on policy changes. My hopes/needs: Looking to create a form that has 5 sections, when the form is submitted it then needs ...
2
votes
0answers
16 views

Showing joined list connections in search results hover

I have searched for this but haven't found any examples (maybe it's my searching abilities) but I am hoping to solve the following problem in SharePoint 2013. I am trying to replace a document ...
1
vote
3answers
112 views

How do I format a Date for my local region in a customised SharePoint Display Template

How do I format a date in a customised search Display Template to show the date in my Region rather than UTC. I use the following XSL in Content Query Web Parts to present the date in my timezone, ...
2
votes
1answer
61 views

Customizing item_CommonHoverPanel_Actions display template

I customized the item_CommonHoverPanel_Actions display template and added custom link to it. Whenever user clicks on the link he/she is redirected to another page. What i am trying to do now is to ...
3
votes
1answer
77 views

getItemValue() getting the value twice?

I'm working on a Content Search WebPart which displays a list of pages. The third line, in my properties, returns a PublishingPageContentOWSHTML. But is it normal that its value appears twice, once ...
0
votes
0answers
18 views

Search results refinement webpart crashing with FileType facet in IE8

We have some content search webparts with refinement webparts for filtering the results. Both on some publishing pages and in our search center results pages. When we add file type as a facet for ...
0
votes
0answers
31 views

Rich Edit changes img src path

I'm trying to use a Rich Edit field in a list to store formatted text which I'm then using with a search web part and a custom display template in another web application. The problem I have is ...
0
votes
0answers
36 views

How to show multi-string values of an AD-mapped property in Person search hover panel template?

I have two Active Directory multi-string properties. The goal is to show the value of these two fields in the Item Person hover panel display template (People Search). We created two user profile ...
0
votes
2answers
94 views

How to remove the seconds part from a date and time property

We have a standard Calendar app in SP2013 with some events that we roll up on a homepage using a content search web part (the Two Lines display template). We show two properties: the title and the ...
1
vote
2answers
77 views

How to get logged in username in custom display template for CSWP using CSR

I am using a custom display template for Content search web part. I am able to get currentItem's properties but how to get logged in user's username using client slide rendering.
1
vote
2answers
91 views

How to control the order of my javascript logic in my display template?

I have created a custom item display template. In this custom item display template I try to check if the current user has contribute permissions to the item. The item is an sitecollection. If the ...
1
vote
2answers
113 views

Check clientside if current user has contribute permissions on current site?

I would like to check in the item displaytemplate if the current user has contribute permissions on the current item. The current item is an site object because in my search query I use ...
1
vote
2answers
206 views

How to add mobile phone number to people search results?

I'm trying to add some more information to the peopleresults.aspx. I tried to follow the instructions here but I get an undefined error for the has_mPhone variable. Is there something wrong is ...
0
votes
2answers
71 views

How to show default picture in display template if no picture found on the item?

I have cloned the OOTB displaytemplate "Item_PictureOnTop.html". I would like to show a default picture if the picture not found on the item. Is that possible with custom css? example here of current ...
1
vote
1answer
132 views

Why is my custom display template not selected in my provisioned page?

I created custom display templates (control and item). I provision also a new page. This page is using my custom pagelayout with some webpart zones. I add some webparts inside this webpartzones by the ...
2
votes
1answer
88 views

How to deal with asynchronicity in display templates

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've ...
4
votes
1answer
45 views

Display templates written in html alter for loops

In a display template (a filter item template to be precise), I observe a weird behavior with for loops. Let's say my template consists in: <div id="CustomRefinement"> <!--#_ for(var ...
0
votes
1answer
51 views

Can't display a Refinable String in my Item Template

I have created an item template, which is a copy of the 'Word Item' template. Within the libraries I'm searching against, I have a Yes/No field called 'privatedoc' which I have mapped to the ...
0
votes
2answers
79 views

Custom properties not shown in search results, but in profiles shown

Im connect custom attributes in profile service AD item (homePhone, CellPhone), after sync they are shown in profiles (private sites). Then Im add this properties in display templates of search ...
3
votes
1answer
65 views

After changing display template of search results - search isn't working

I'm changing a display template (copy Item_Person, modify, and add Item_Person_WorkPhone) and adding a new search type. It works, but only with my administrator account. Users with Read permission ...
0
votes
2answers
57 views

Why can I not publish an item display template?

I have built an item display template which I have added to the contents web part folder in the masterpage gallery. I need to publish this template - When I try to select the item (or any other item ...