You are viewing limited content. For full access, please sign in.

Question

Question

Search Result - "Result Per Page" DropDown

asked on May 28, 2015

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?

0 0

Answer

SELECTED ANSWER
replied on June 8, 2015

Never mind.. I hacked and slashed it.

Regards,

Avri

0 0

Replies

replied on June 1, 2015

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. 

0 0
replied on June 1, 2015

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.

 

0 0
replied on July 26, 2017

Avri.

May I ask how did you hack it. smiley

I am looking at a similar problem.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.