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

1
vote
1answer
13 views

This item cannot be deleted because it is still referenced by other pages. SharePoint 2013 Display Template

I am trying to delete a display template's html file. I tried PowerShell script, tried doing it manually, and also tried SP Designer to delete. But with all I am getting same error. Error: this ...
0
votes
0answers
25 views

Rich Text Column content in Display template for Search Results webpart

I am trying to display content from a rich text column (ArticleContent) in my search results webpart using a custom display template. <div id="_#= $htmlEncode(itemId) =#_" name="Item" ...
0
votes
0answers
9 views

Department of a person is empty in content search web part's display template.

I have a Content Search Web Part with result source "Local People Results (system)". I get all the users(people) in result of web part. But I can't get the Department of a person. It always gives ...
1
vote
0answers
32 views

Search Display Template Not Returning Values for Managed Property

Search results has no value for a custom site column. Ok, so I have a lookup column created as a site column in the root of my site collection. I found the field in crawled properties. NOTE: I am ...
0
votes
1answer
30 views

Show attachment in Search Content Display Template

I'm currently making a display template for my content search query. I would like to show the attachments but I don't know what code I would use to do this. Here is my code but I don't have anything ...
0
votes
1answer
22 views

Rollup image webpage display template

I have a web page and I've set a rollup image in its properties. What I would like to do is to display this image when this web page appears in a search result. I've tried to modify Item_WebPage.html ...
0
votes
1answer
26 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
15 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
46 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
42 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
34 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 ...
2
votes
2answers
154 views

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
18 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
35 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
47 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
11 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
40 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
107 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
93 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
134 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
39 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
35 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
285 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
61 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
115 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
39 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
55 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
62 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
61 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
232 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
228 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
90 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
80 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
62 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
239 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
35 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
19 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
183 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
358 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
21 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
286 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
114 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
40 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
52 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
48 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
106 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
36 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 ...