custom display templates for search results RRS feed

  • Question

  • Howdy,

    I've been struggling with creating a customized search result. My problem is this: I have list with a custom content type that displays links to documents that are not on this site. The Content Type has a few columns: URL to the document and name.

    When searching the site I want the results to show the document and possibly have the preview panel work. Right now, the results are out of the box so they just show the list items themselves. In other words, I want to display what the lists are pointing to and not the list items themselves. 

    I hope this makes sense.

    So I first started by creating a Result Type: If a list item has that specific Content Type use my custom list item display template. Perfect, that was easy.

    Now, when I'm modifying my display template, I have no idea how to pull the name and URL columns from that content type and put it in to the title of the item. I searched the internet for this.. I'm thinking this may not be possible but that's hard to believe.

    Any help, resources would be great!

    Wednesday, June 25, 2014 5:18 PM