Limit search preview content RRS feed

  • Question

  • Hi All,

    I have the following scenario. I'm trying to limit the content in search preview which is shown when you hover over the search results. Currently if the content is long the preview has a vertical scroll bar

    I want to limit the preview to certain number of lines followed by a link of Read More which which will redirect them to the document.

    Is it possible using Html/Xslt .I'm using Sharepoint 2013/Office 365.

    Any help is appreciated.

    Tuesday, March 17, 2015 4:39 AM


All replies

  • Not with XSLT, that's old stuff and doesn't relate to 2013 anymore.

    You would need to modify the display template that's used for the preview result. There's a few blogs on this but here's a starter: http://sharepointfieldnotes.blogspot.co.uk/2012/11/customizing-sharepoint-2013-search.html

    • Marked as answer by nextwarren Thursday, March 26, 2015 7:26 PM
    Tuesday, March 17, 2015 9:29 AM
  • Thanks for your help.

    I have tried display template. Using css I was able to limit the content to a specific height. I have the read more link to show the entire content. But it shows every time. even if the content is small. I want it to show only when the content does not fit in the div

    Tuesday, March 31, 2015 8:56 PM