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

DatePicker in Sharepoint Search Refiner

I am trying to create a custom refiner that uses a begin and end date to filter my search results. The problem is that i want the users to select those dates using a datepicker. The problem i am ...
0
votes
1answer
18 views

SP2013 : Display templates, SP.ClientContext(), Object doesn't support this action

I am building an display template. In the item template I have an onclick function on each item (picture). In this function I have some SharePoint Client Side code. The first row code is: var ...
1
vote
2answers
52 views

SP2013: Get item by id from javascript function?

I have built a display template. In the item template I have some Images from the list "Employees". I have created a function to get some detail info. In this function I have one parameter with the id ...
0
votes
0answers
14 views

sp2013 display templates: How to pass variable value to function as parameter?

I am trying to programming some logic in sharepoint display templates. The power from these display templates is because you can mix html and javascript. I see this comments in one of display ...
0
votes
0answers
17 views

How to make display template with dynamic table cells?

I have cloned the OOTB display template "Control list" and "Item". Now I would like to change this code which is just a simple list of <ul> and <li> tags which are wrapping the content, to ...
0
votes
2answers
20 views

sp2013: Where can I find info about display templates and javascript/jquery to generate fancy search result webparts?

I am using SP2013. I have a list with items. These items I am showing in a search content webpart. Now I like to do fancy things in javascript and jquery. Where can I find more info about these? ...
0
votes
0answers
13 views

SP2013: Display templates with pictures and after select a picture show info (title, description) in another div?

I am using SharePoint 2013. I have a list with 4 columns (title, description, picture, url). I would like to create a search content webpart which is showing a table with the latest 6 items from this ...
0
votes
1answer
19 views

Modify the Hover Panel on the search page [closed]

I would like to customize the hover panel that is shown when I'm over an item on the result page. Is that possible?
1
vote
0answers
35 views

Difference between Content Search Web part and Search Result Web part

I know that Content Search web parts(CSWP) is available only on Enterprise edition. And other great features as compared to Search Result web part (SRWP). When would it be preferable to use either of ...
0
votes
0answers
18 views

Add Display Template for Search Result Web part

I was able to easily add Managed Metadata properties for Content Search web parts(CSWP). Using this I was able create beautiful Custom Display templates. I now have to create a display template for ...
0
votes
0answers
15 views

sp2013: Show overview with items (title, description and picture) in a sexy layout, display templates?

I have a sharepoint 2013 portal. I have a custom list with the name "Articles". I have also a custom contenttype on this list with the name "ArticleCT". In this contenttype I have some columns like ...
0
votes
1answer
53 views

Display Template Error: The processing of item fails with error > Object reference not set to an instance of an object

I created a very basic display template to show some properties for a content type, Basically it says, if content type ="Tax Invoice", use this diplay template. All the managed properties exist and ...
0
votes
1answer
51 views

Custom Display Template, on one content type, lost preview on word files, powerpoint, etc

I created one result type like this: I copy paste Item_Default.html to Item_BillCycle.html and modified a few lines: <mso:ManagedPropertyMapping ...
0
votes
2answers
26 views

increase the length of title in search result in sharepoint 2013

I am using Sharepoint 2013 and sharepoint 2013 search. when i search for certain items i get results, but the title of certain items shows with a trailing dots after showing some characters of the ...
0
votes
3answers
33 views

Is it possible to change the text color of a search result?

Anyone ever customize the text color of a search result based on the type of content? It came up in a recent conversation and I thought I'd pose the question. I'm thinking display templates could ...
0
votes
1answer
32 views

SP13 Customizing Search Result Items [closed]

I have a custom display template for search items on a SP '13 site. I need to apply a class to the middle 'cell' of each result row. I've tried using css nth-child but this does not seem to work since ...
1
vote
1answer
45 views

Display templates - style block / media queries - remove //<![CDATA[

I'm having trouble inserting style block inside a display template. See code below: <a class="articleListing" href="_#= linkURL =#_" title="_#= $htmlEncode(carouselHeading) =#_"> ...
0
votes
0answers
18 views

Customizing Catalog Item Page

I have a Term-Driven SP '13 site and I am trying to customize the catalog item page. The 2 content types that exist on this site are PDF's & videos. Each content item will have a name, rating ...
1
vote
1answer
120 views

SharePoint 2013 - Display templates - media queries to get image rendition on images based on screen size

I know I could use device channels to do this, but is there a way to get right image rendition with media queries? item display template <div class="image"> <style> @media only ...
0
votes
2answers
330 views

SharePoint 2013 Display Templates - Load Javascript BEFORE rendering search results

This is my problem and please let me know if I am approaching it incorrectly. I have a list called "document classes" that holds information such as the retention and revision periods for documents, ...
0
votes
1answer
200 views

showing User field in a display template

I have added CSWP to a page which retrieves 5 recent posts from a community site. Now I want to modify display template to show the thumbnail of the user who created the post. Is it possible?
1
vote
2answers
230 views

Add CSS Classes to ContentBySearch.getPictureMarkup

I'm trying to create a custom design on a Content Search web part. In the display template the var pictureMarkup is created using this line: var pictureMarkup = ...
0
votes
0answers
93 views

“Search Results” Group Results for JS Slider

I heave a "Search Results" web part that pulls an article page based on a content type. I have my custom control and item templates, plus modified group template as well to render items for an ...
0
votes
1answer
484 views

Getting Correlation ID: 00000000-0000-0000-0000-000000000000 in Content Search Webpart

I keep on getting: Sorry, Something went wrong. Correlation ID: 00000000-0000-0000-0000-000000000000 in my Content Search Webpart. The Content Search Webpart is configured to get results ...
1
vote
0answers
642 views

Managed properties in display templates giving null

I created custom display template for ms word documents, I'm able to get values like Path,SPSiteURL, ServerRedirectURL..etc, but when when i try to access 'Site' im getting null in it, I'm trying to ...
0
votes
1answer
313 views

How does one render a security trimmed link in a display template? [solved]

In the old ListView/DataForm XSL based webpart you could throw down some XSLT that would render out a link if the viewing user had sufficient privileges like so: <xsl:choose> <xsl:when ...
1
vote
1answer
338 views

Get custom properties like `Created` and `Description` in Display Templates of ContentBySearchWebPart

I use Display Templates for rendering ContentBySearchWebPart. Nice feature, but how I can add custom properties from search results list item into Display Template? For example, I have a template, ...
1
vote
2answers
608 views

Sharepoint Search 2013: Create new result type for local people result

I have created a new display template for local people search and it's working perfectly. I wanted to create a result type for local people search to use my custom display template but it's using ...
3
votes
1answer
276 views

SharePoint 2013: Access the metadata Tags of a page within a Search Result Display Template for an Item

I'm trying to access the metadata Tags of a SharePoint page within the search result of that page using a Display Template. In the Managed Properties for my search service, the Tags property is ...
2
votes
1answer
195 views

C# How to read display templates location in Sharepoint 2013

Sharpeoint 2013 has a default filter template located at: _catalogs/masterpage/Display%20Templates/Filters/Filter_Default.js How can I read the absolute path of the _catalogs masterpage in C# ? ...
1
vote
0answers
520 views

Sharepoint 2013 search display template hover panel

I have a task in which I have to customize the search display template for webpage ,am which I did successfully by copying webpage template and modifying it .by the way I am using search result ...
1
vote
1answer
1k views

How to pass parameters to the Control display template of a Content Search web part?

Using SharePoint 2013 I have a Content Search web part that I'm using to display 5 News Articles using the following display templates: Control: List Item: Picture on Left, 3 lines on right And ...