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
13 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
0answers
6 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
0answers
18 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
18 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
15 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
32 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 ...
0
votes
1answer
46 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
17 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
45 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
33 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
19 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
25 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
53 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
51 views

Managed properties undefined in common display template

In the common display template I added a custom Managed property ...
1
vote
0answers
40 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
76 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
36 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
174 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
35 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
19 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
17 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
65 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
21 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 - ...
0
votes
1answer
127 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
33 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
87 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
42 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
17 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
54 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
38 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
164 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
81 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
24 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
143 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
128 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
147 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
116 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 ...
2
votes
1answer
36 views

How can you share script members between control template and item template

I'm developing two custom display templates (Control and Item template) and I'm wondering if it is possible to share script members between these two templates, e.g. if I add something like var bar = ...
4
votes
1answer
149 views

Managed properties missing in the search results webpart when not using the querystring

When using the search results webpart without the querystring (For instance when trying to use managed metadata navigation) I am unable to view custom managed properties AND am unable to see any ...
0
votes
1answer
114 views

Refinement Token for starts-with or prefix search

I am trying to create a custom refiner based on the path managed property. After selecting it should show items in a directory so I have to use a prefix search with the property path. var refiner = ...
0
votes
0answers
13 views

how sharepoint 2013 view display result from search

If you open any list in SharePoint List, you will see small search box above the list and you can search within the list. So by default when you open view page you will see all items from list and ...
0
votes
0answers
92 views

javascript not rendering on display template

While creating Display Templates, I am working on a control template. I have three javascript files and a css file that's not rendering. I have checked the path and ran full crawls, below is the code. ...
1
vote
1answer
162 views

SharePoint 2013 CSWP Refresh

I have a situation where I need to display announcements based on year and month. On the page I have a dropdown essentially for Year and Month which will drive the Content Search Web Part. Using query ...
0
votes
0answers
101 views

Content search web part. Pass parameters

With the content search web part is it possible to pass (configuration) parameters? I have a custom display template for use in the content search webpart. It displays a bunch of custom properties of ...
0
votes
0answers
35 views

Document Set Display Template

I have a tagged Document Set with several attachments. I have a query through the content search web part on my home page which pulls this document set. When I click on the document set, it takes me ...
0
votes
1answer
260 views

Sharepoint 2013 display templates look different to users

As admin user everything looks fine on the site, but when I log on as a normal user the display templates gets another look. Some of the display templates also get an error "Sorry, something went ...
2
votes
1answer
252 views

List Enterprise Keywords in a Content Search WebPart Display Template

I am having problems preparing my own display template for the Content By Search WebPart running queries on a wiki page library - so far I have been successfull in displaying the title, author and the ...
1
vote
1answer
139 views

Search Results Clear On Refinement or Subsequent Search wiith Custom Display Template

I'm working with a custom search display template. I have my results shown as a grid as well as a few other changes. Since it is shown as a grid, I have a requirement to show the rows with ...