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
0answers
11 views

OnPostRender on a hover display template

I have this code which works on a normal display template, so runs after the display template has been rendered but when I add it to a hover, it does it before the template has been rendered. Is there ...
0
votes
2answers
27 views

Run javascript after display template loaded

How can I run some JavaScript after my display template has loaded. I have tried: AddPostRenderCallback(ctx, function () { jQuery(document).ready(function () { ...
0
votes
0answers
5 views

Display the “Other Label” from a termset in a Display template

I have a term set which lists departments, the default label list the abbreviation (ACC) and the other labels display the actual name (Accounts). I am pulling all this data into a Display template ...
0
votes
1answer
15 views

Search Result Template not sticking

I'm having a weird problem and I hope someone can help. I created a custom search result template, I added a search result web part, then selected it from the "Item Display Template" dropdown and ...
1
vote
1answer
35 views

page preview not showing on display template

I have created a display template which is a hover panel. I am wanting to add the page preview thing but at the moment it is not working. I added from a default display template that works but for ...
1
vote
2answers
58 views

Customize the search display template to show picture with the results

I'm using contents web parts to get documents from specific document library. And I already customized "Item_Default.html" in order to add lines and show discriptions next to Managed Properties. ...
0
votes
0answers
13 views

Warning invalid character display template tag

I get warnings in my display template on some _#= entries, I ignored these for a long time but now I thought, well, let's see if I can find out why it gives me a warning on this. e.g. on the second ...
1
vote
0answers
19 views

SP 2013 Content Search webpart change data based on Drop down list selection

In my page there is a content search webpart which displays data for each year. Now I have a drop down list in that same page (lets say inside a Content editor) which shows all years ie 2014,2013,2012 ...
2
votes
1answer
27 views

How to create custom search result source + display template

This is the desired scenario: User searches for something and if that something comes from a particular list, swap out the Search Result title(link), with the list item's Url field. If the search ...
0
votes
0answers
16 views

Friendly urls in Display template

I am using a custom display template for search result items. I have used Managed Navigation to associate multiple friendly URLs with every physical page. Now I want to show the friendly urls in my ...
0
votes
0answers
14 views

Customizing item_default.html display template to use another Control Display template

I have created a copy of Control_SearchSearch.html cotrol display template and now I want to make Item_default.html display template use this Control Display template. how do I make it to use my ...
0
votes
1answer
21 views

One dislpay template for all results

I need to change look and feel of search result in a way that it looks same for all result types. Do I need to create a display template for each result type?
0
votes
1answer
19 views

Content Search Query settings in Site Template

We've added a CSWP to a site template, defined the query and added custom display templates with the Control and Item options. However, when we create new sites from the template, the new CSWP ...
0
votes
1answer
67 views

Is it possible to edit search results from within a display template (using data from an executeQueryAsync request)?

Does anyone know how to modify search results before they are rendered when the modification depends on data returned from an async request? I have a requirement to filter some search results ...
0
votes
0answers
21 views

How to render html/rich text in cross-site publishing

We have set up cross-site publishing and it is working. But for some reason almost all of our text content is coming across with extra div and html element tags. I found this solution to basically ...
0
votes
1answer
16 views

Using if statment to compare variable in User Profile

I've created a display template based off the Item_Person template in the SharePoint 2013 on Premises application. This template list the Departments, Branch Location and Regions. On the display ...
0
votes
0answers
47 views

List Item ID not appearing in Search Display Template

This blog shows a simple example of adding ListItemID to the managed properties in item_default.html. I can see the change reflected in item_default.js after uploading the html file, but when I put a ...
1
vote
1answer
71 views

How do you use the URL site column in a display template?

I've added a URL site column to my custom list. However URL isn't accessible in my display template. I want to do something like: var url = ctx.CurrentItem.URL; Here's my current display template: ...
0
votes
1answer
18 views

How do I set the Result Type for items in a particular list?

I want to specify a display template to be used for items in a particular list. So everything in this list will use my custom display template. I created a Result Type, but I don't know which ...
0
votes
2answers
53 views

Modify the default list view to expand the “Description” field insdie the view table

I have use the default view for my SharePoint 2013 issue tracking list , as follow:- But is there a way to make the “Description" field size larger ? I know this field will expand automatically , ...
1
vote
1answer
48 views

Map User Profile (AD) property to mangad property for Display Template

I have "successfully" imported an extended property from AD and to be able to show this property in a display template for search I Think I have to map it to a managed property. When I go to [CA > ...
0
votes
0answers
20 views

How to publish custom Display Template files in SP2013

I have followed this guide how to create a display template and now I want to publish it in a feature receiver. The creation of the display templates seems fine. Basically the code in the link finds ...
1
vote
0answers
31 views

How to get the listname in a custom display template for a content search webpart

I cant believe that Sharepoint does not have a managed property for list name, neither a Crawled property I can map. Seems weird to me. I have a display template that renders results in a Table ...
1
vote
1answer
82 views

Run js after display template has loaded/rendered content

I have a javascript file that I want to run after my display template has rendered. I have added it to my display template like so : <script> $includeLanguageScript(this.url, ...
0
votes
0answers
62 views

Managed properties undefined in common display template

In the common display template I added a custom Managed property ...
1
vote
0answers
43 views

Change the search result item itself in display templates -SharePoint 2013

I have a document set with 2 documents , lets say Document A (Content type A) and Document B(Content type B). All the properties of the document set are marked as shared properties. Now i want to use ...
0
votes
0answers
86 views

Customize display of people picker

I need to customize the display of a people picker field control in a page layout for a SPO site. None of the options available in the column properties (like "Name (with picture and details)") is ...
0
votes
0answers
41 views

Custom People Search

I have created a people search page based on the guide linked below, Im also using the Table Template from that guide. The problem I'm having is that when I import the company field from AD its ...
3
votes
2answers
239 views

How to get the list name on a content search webpart displaytemplate

I used the display template from Elio Struyf to create a datatable "format" with my results. http://www.eliostruyf.com/table-layout-display-template-with-managed-property-sorting/ However its my ...
0
votes
0answers
52 views

Getting the version history of a list item

I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
0answers
22 views

storing the display template html and js files in different folders

Basically as the title says is there anyway to store the html and js file of a display templates in different folders. So like a line of code in the html file telling it where the js that is linked to ...
0
votes
0answers
18 views

Adding an managed property to a display template that is from a list where versioning is turned on

OK I have a list which has a multiple lines of text type. Versioning is turned on so it shows the time date created by and the text they edited. I want to add this to a display template but separate ...
0
votes
1answer
30 views

SharePoint 2013 Search: JavaScript object model get alternate access mapping

I am using a custom item template for search results. In that I ma getting the links as the original ones and not the Alternate Access Mapping. Is there a way to transform the original URL's to the ...
1
vote
0answers
14 views

getting the content type of the thing you searched in the display template

Basically what the title says I want to say what content type each search item is in the display template. How is this done???
0
votes
0answers
73 views

Person type url on a display template

I have a list which has a person type in it. I am taking this person type column and adding it to the display template. However how can I get the URL so it goes to the mysite of the person. At the ...
0
votes
0answers
24 views

Display Templates - Filter selectable items by control

Situation I have loads of display templates (>30) for different purposes. For consistency reasons I created them in the following format: Controlname - Company_Controlname Itemname - ...
2
votes
1answer
187 views

Display Template HTML file missing in SharePoint online

I'm trying to learn how to manipulate display templates on SharePoint. I have a SharePoint online account but I can only see the .js files and not the HTML files we're suppose to work with. Is this ...
0
votes
0answers
39 views

Search result preview showing RelevantResults(10) when only one item returned - display templates

When I'm trying to change query in a content search web part I get the wrong results count, see picture below As you can see on the picture it show 10 items, but I only get one item listed. This ...
0
votes
1answer
130 views

Error in search result webpart, is my display template stuck?

I am using sp2013. I have a search result webpart which I use like a people searcher. It shows all users. And it is possible to search on a specific user. I have cloned the person-item displaytemplate ...
0
votes
0answers
60 views

Using AppendOnlyHistory in a display template

I'm using a content search web part and would like to be able to get an append comments text field displayed. I want all text, the author, and the timestamp displayed for each item, just like how it ...
0
votes
2answers
21 views

Infopaht form: once repeating table is created, how can i add display rows to be default?

I created the repeating table with two rows display initially, but i would like to have 5 rows instead. How can I fix it?
0
votes
0answers
65 views

How to load script from hive in display templates

I'm trying to load a script from the hive in my display template. I've tried <script src="/_layouts/15/1033/comany/js/bootstrap.min.js" type="text/javascript"></script> and ...
0
votes
1answer
45 views

Using Terms in Search Result Display Template

I'm writing a custom Result Type Display Template and I would like to display an item's term set in a <ul> list. The ctx.CurrentItem contains the managed property { 'terms': ...
1
vote
2answers
214 views

creating custom functions in display template

<a title="_#= $htmlEncode(Srch.Res.sb_GoSearch) =#_" class="ms-srch-sb-searchLink" id="_#= $htmlEncode(searchBoxLinkId) =#_" onclick="CustomFunction();" ...
0
votes
1answer
108 views

Content Search Webpart not getting Picture URL

I've built a DisplayTemplate (ItemTemplate) for a ContentSearchWebPart. It works quite well for different fields, but I don't get my PublishingImage from the pages I'm querying. The ...
0
votes
1answer
34 views

How to edit a Display Template directly with Visual Studio

I'm working on a Display Template for the standard search Refinement web part. The problem is that every time that I need to change it (with Visual Studio 2013) I have to pass from a manual delete ...
0
votes
1answer
190 views

Problem with adding a custom managed property in the People Search Hover Panel

We are using O365/Sharepoint Online 2013 (+ Sharepoint Designer 2013). We are using people search center as our intranet "Phone book" and it's working really well and I managed to customize the ...
2
votes
0answers
138 views

Custom Search display template: In some items I see the field “HomePhone”, in others not, but it is filled in UPS

I am using SP2013 standard. I have a page with a search result webpart which shows all people. I cloned the person-item displaytemplate. I added some extra fields to it. But on some results I see the ...
3
votes
3answers
151 views

Is there a way to display a warning message inside my enterprise wiki page layout , when the page status is Rejected

I am working on a publishing site collection using the Enterprise wiki template. Currently I got this behavior regarding the versioning setting. For the library I specify that the library content ...
0
votes
0answers
141 views

2013: Where is the ctx.CurrentItem being generated in the search display template?

I'm wrapping my head around the display template and I'm trying to get the hover template to work in a custom display template. Right now, I'm trying to get a preview window to work with the ...