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
3 views

Display template javascript array

Have an item display template in SharePoint 2013. The returned property has multiple entries and I'm trying to format them with a pipe between them.Here is the code that I put in the html file. ...
0
votes
0answers
10 views

How to Insert images and description into a slideshow from SharePoint Back-end

I have a slideshow on the design that I'm converting to SharePoint template. Looking for a way to insert the slideshow's images and description from SharePoint's back-end. Something like a form with a ...
0
votes
1answer
28 views

Unable to get image from site column in display template

I have a site column of type Publishing Image. I want to use it in my display template after mapping it to the crawled property. But it always returns null. I have mapped the column to a crawled ...
0
votes
0answers
19 views

How can I adjust the width of a Sharepoint 2013 search display template?

I'm trying to create a custom display template to display search results in a tabular form with specific metadata attached. I have built the basic table in the item level display template but ...
0
votes
1answer
13 views

Link Description crawled property in a display template - SP2013

I am a bit of a noob when it comes to display templates, so please bare with me. I am trying to map the link description from a URL column to my display template. However I have no idea what that ...
0
votes
1answer
49 views
+50

Sharepoint Online search not showing the correct title

I have a content search webpart that shows the title of the file and other properties. However in some file its not using the property Title, it looks like its using the title on the first big ...
0
votes
0answers
14 views

Disaply template result block not showing

I created a display template, which in search was showing up fine, but I wanted it as a result block, and when I added it, the display template would just show as a blank. What is the problem?
0
votes
1answer
22 views

What is the difference between a Control template and a Display template?

I have tried to read up on it but I am still confused regarding them. If I want to change the look and feel of page when I click on an item in a list/library ( the dispform.aspx) page, what file(s) ...
0
votes
0answers
17 views

add a close to my hover display template

How can you add a close to the hover display template. I have created a custom display template with a hover. When I hover over it, it does not contain a cross at the top right hand corner, like I ...
0
votes
0answers
7 views

Group/Control template options

We have made our own control and item templates for use with the content search web parts. One of our item templates shows "cards" for each returned item. Currently we have one control template for ...
0
votes
1answer
26 views

How to check current user membership from item control template (sharepoint online)

Ive made a item control template for SharePoint online. It's working like a charm and all that, however ive been asked to hide a buttom depending on current users membership. So my question is. How ...
0
votes
1answer
53 views

jquery slider in display template works only every second/third time

I've added PGWslider to a Display Template in SharePoint 2013. And it renders nicely - most of the times. Every second or third time I refresh, F12 from IE tells me that "the object does not support ...
0
votes
2answers
45 views

SP2013 getting mysite url of person on display template

I have this display template which displays certain managed properties from a list, including Created by. I want Created by to be clickable and take the user to the mysite of who ever created the ...
0
votes
0answers
64 views

Programmatically change Content by Search queryTemplate & Paging display template

I'm using the following solution to change QueryTemplate on run-time: ...
0
votes
0answers
16 views

Sharepoint Online Content Search Display Templates missing

I'm experimenting Content Search web parts in a number of Site Collections, but appear to be getting different Display Templates available. Can anyone explain what controls the availability of the ...
0
votes
0answers
16 views

Calender View for Custom list used in Template

I have created a site template which contains number of custom views of the Custom list . With in that i have calenderview for the list . when i am using this web template to create a subsite, i am ...
0
votes
1answer
23 views

Custom values in Control display template

We are trying to reuse our custom cotrol display templates in several different places. We've found several different tutorials on modifying the item display template, but not much on customizing the ...
0
votes
0answers
10 views

Can I have a common set of Display Templates shared against multiple HNSCs?

This maybe a simplistic question if so bear with me! Ok take my Host Named site Collections https://home.domain.com - Landing page https://home.domain.com/SearchCenter/Pages ...
1
vote
1answer
105 views

Managed Property Mapping in display template giving blank values for custom properties

I have specific problem. In search result I want to display certain information from a column called Metadata. So I did this: Is column mapped in Search Schema? MetadataOWSTEXT - Check Performed ...
0
votes
1answer
38 views

How to retrieve value of type hyperlink from managed property in display template?

I have a site column of type HyperLink / Picture where the url for the icon is stored. I want to access this in the custom display template for search items. Whenever I try to access the site column ...
0
votes
1answer
49 views

Display Template Render HTML in list item

I am building a display template for a CSWP. One of the properties is a multi-lined textbox and some HTML is stored with the actual data. How do I go about rendering this html in my display template? ...
0
votes
0answers
29 views

SharePoint CSWP 50 Item Limit

Would anyone be able to suggest an approach for increasing the default 50 item limit returned by a CSWP? This is for a solution that uses a custom display template to render the results out in a ...
0
votes
1answer
47 views

How regular columns become managed properties?

I Customize Display Template for Content By Search result Web Part. Then, Add a reference to your custom managed property in the display template to the ManagedPropertyMapping attribute. But, when I ...
0
votes
2answers
51 views

how to Mapping input properties and getting their values in Item display template?

I have the following list: type of my columns are regular column. I want Customize Display Template for Content By Search result Web Part (Link01 and Link02) but pictureLink, description, ...
0
votes
1answer
44 views

Display template renderer for managed navigation terms

We have a cross-site publishing set up. It is working and bringing across our catalog of items and the terms we used to setup a managed navigation on our publishing/user side. We are showing catalogs ...
2
votes
2answers
190 views

Creating customized search results in SharePoint 2013 with Dispaly Template

I am trying to customize search result through display template. my template has two block for Rendering. how to customize search result such as following image: my HTML code for implement is: ...
1
vote
2answers
111 views

Run any other javascript in a Control Display Templates

I create a Slider By Search result Web part specified with my custom Display templates. I want to run some other javascript code in the my custom Control Display Templates have rendered the content I ...
2
votes
0answers
51 views

SP2013 , Control Templates ctx.ListData.ResultTables Not available in IE 11

I am trying to fetch the total count of result items in my content search webpart's Control template using the code: ctx.ListData.ResultTables[0].ResultRows.length Now this line works perfectly ...
0
votes
1answer
46 views

Can you expose configurable parameters from a display template in the web part editor part?

I am working on customizing display templates for the Content Search web part. I have a custom item template, and a custom control template. I'm going to be setting up several similar web parts, and ...
0
votes
0answers
48 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
111 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
26 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
18 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
113 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
233 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
19 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 ...
2
votes
2answers
123 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
65 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
34 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
1answer
40 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
24 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
36 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
91 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
32 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
19 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
2answers
114 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
2answers
144 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
20 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
76 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
77 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 > ...