Note: This solution applies to DocuShare 6.5.x and 6.6.x
Note: Update 1 adds an nresults parameter to set the quantity of search results displayed for What’s New and simple search. Make the following changes to HomePage.vdf and dslib.vdf files after Update 1 patch for DocuShare 3.1 has been installed. Both vdf files are located in [ds3home]/amber/templates/[locale]/system.
Use an ASCII text editor such as VI for Linux or Solaris or notepad.exe for Windows to edit the [ds3home]/amber/templates/[locale]/system/dslib.vdf.
Change quantity of results displayed for What’s New
To change the quantity of results displayed for 'What’s New' from the Home page sidebar:
- Edit the nresults value= parameter in the ApplyLIstNew section of the HomePage.vdf file.
'<'insert ref="request:html:begin_form(action='ApplyListNew/Site',validate='off',name='ApplyListNew')"/'>' '<'input type="hidden" name="nresults" value="100"/'>' - Change the quantity assigned to value from 100 to the required quantity. Maximum quantity allowed is 10,000.
- Save the file after editing is completed. The change goes into effect the next time DocuShare is started.
To change quantity of results displayed for 'What’s New' from the top navigation bar:
- Edit the ?nresults parameter in the bannermap section of the dslib.vdf file.
'<'MAP NAME="bannermap"'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_home1')}" HREF="${request:config:cmd_base}Home" ALT="Home" TITLE="Home"/'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_home2')}" HREF="${request:config:cmd_base}Home" ALT="Home" TITLE="Home"/'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_contentmap')}" HREF="${request:config:cmd_base}Index/${request:context}" ALT="Content Map" TITLE="Content Map"/'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_whatsnew')}" HREF="${request:config:cmd_base}ApplyListNew/${request:context}?nresults=100 ALT="Whats New" TITLE="Whats New"/'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_usergroup')}" HREF="${request:config:cmd_base}Registry" ALT="Users and Groups" TITLE="Users and Groups"/'>' '<'AREA SHAPE="rect" COORDS="${request:view_message(name='web_banner_coords_help')}" HREF="${request:config:cmd_base}helpdesk" ALT="Help" TITLE="Help"/'>' '<'/MAP'>' - Change the quantity assigned to ?nresults from 100 to the required quantity. Maximum quantity allowed is 1000.
Save the file after editing is completed. The change goes into effect the next time DocuShare is started.
Change the quantity of results displayed for Simple Search
To change the quantity of results displayed for a Simple Search run from the top navigation bar:
- Edit the nresults value= parameter for in the ApplySimpleSearch section of the dslib.vdf file.
'<'insert ref="request:html:begin_form(action='ApplySimpleSearch',validate='off',name='Search')"/'>' '<'input type="hidden" name="nresults" value="100"/'>' - Change the quantity assigned to value from 100 to the required quantity. Maximum quantity allowed is 1000.
- Save the file after editing is completed. The change goes into effect the next time DocuShare is started.
Note: Increasing the quantity of results returned may impact how quickly DocuShare can generate and display the results page.
Solution Updated: September 27th , 2011
Solution ID: 142