Allow user to select page size for smart search results

Tracey Penberthy asked on April 26, 2017 17:26

Hi

How do I create a control that allows a user to select the page size of smart search results (e.g. a drop down with 10, 15, 50.. etc in that when selected changes the smart search results PageSize value).

I though a filter would do this but I can't work out how.

Many Thanks

Tracey

Recent Answers


Roman Hutnyk answered on April 27, 2017 08:42

If you open configuration dialog for Smart Search Results web part you'll find pager settings and pager design sections there. This where I'd recommend to setup paging.

0 votesVote for this answer Mark as a Correct answer

Tracey Penberthy answered on April 27, 2017 10:08

Thanks Roman

But I was wondering if there is a control you can add to the page that would allow the person viewing the page to change the page size (i.e. the visitor to the website rather than the editor of the website)

Cheers Tracey

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on April 27, 2017 10:16

You could add a drop down with page sizes and make it auto postback with adding query string parameter (e.g. ?pagesize=10) and use query macro {?pagesize?} in search results settings for page size.

1 votesVote for this answer Mark as a Correct answer

Tracey Penberthy answered on April 27, 2017 12:31

Thanks Roman

That sounds like what I am after, I will give it a go

Cheers Tracey

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.