I am attempting to have Weblink 9 show the same user options as Weblink 7.2.
How to I get the the Result Per Page control back onto the Search page?
I am attempting to have Weblink 9 show the same user options as Weblink 7.2.
How to I get the the Result Per Page control back onto the Search page?
Never mind.. I hacked and slashed it.
Regards,
Avri
Are you looking to change the number of results per page to control the search results count? Or are you looking to allow the end user to be able to customize this value on the front end?
To control the search results count, you can change the code in search.aspx. You would need to open up the WebLink directory, find search.aspx in the Web Files folder and then find these lines of code:
<weblink:searchresultsbrowser8
SortableColumns="COLUMN_TYPE_LASTDATE, COLUMN_TYPE_CREATEDATE"
AdditionalProperties="COLUMN_TYPE_CREATEDATE, COLUMN_TYPE_LASTDATE, COLUMN_TYPE_NUMPAGES, COLUMN_TYPE_TAGS"
ThumbnailCount="5" id="TheSearchResultsBrowser" runat="server" width="100%" MaxLength="20" />
<div style="display: table; table-layout: fixed; width: 100%;">
<%-- Set Enabled to true if using grid view; otherwise, set it to false for list view --%>
<weblink:SearchResultsBrowser
id="TheSearchResultsBrowserGrid" runat="server" width="100%" MaxLength="15" Enabled="true" />
</div>
The MaxLength attributes control the maximum number of search results on the page. The first one (showing 20) controls the max length if Enabled=”false” and the results are viewed in the normal format. The second one (showing 15) controls the max length if Enabled=”true” and the results are viewed in the grid format.
Hi Ashley,
This is great for the initial result, but I would like to have the user select the number of records to show.
The previous version has a combobox for this option. Please look at the screen shot that I provided.
I would like to know how to get that control back.
Avri.
May I ask how did you hack it.
I am looking at a similar problem.