Changing the Number of Context Hits Displayed in WebLink.

May 11, 2015 | KB: 1012805
WebLink 8, WebLink 9

Summary

WebLink 7 enabled you to change the number of context hits displayed after performing a search by editing the Search.aspx page. Doing so in WebLink 8 or WebLink 9 will not edit the number of context hits displayed.

Workaround

To change the number of context hits in WebLink 8 or WebLink 9, edit the SearchResults.xsl page.

  1. Open SearchResults.xsl by navigating to the Web Files\xsl subfolder in the WebLink installation folder. By default, the file will be located at C:\Program Files\Laserfiche\WebLink 8\Web Files\xsl\SearchResults.xsl or C:\Program Files\Laserfiche\WebLink\Web Files\xsl\SearchResults.xsl.
  2. Look for the line: xsl:for-each select='ContextHits/ContextResult[position() < 6]'
  3. Replace the last number (in this example, the number 6) with a number that is one digit more than the number of context hits you want displayed. For example, if you want 20 context hits displayed, enter the number 21.

Note: WebLink can display a maximum of 20 context hits per entry.