question

RajivRanjan-6413 avatar image
0 Votes"
RajivRanjan-6413 asked EchoDu-MSFT commented

Custom Pagination in Sharepoint search result webpart

I have a SP 2013 Search result webpart, i wanted to update the current pagging view , by default it showing only 1 & 2 with next button.
138428-image.png



It should show at least 6 digit for me for Example (< 1 2 3 4 5 6 >). Can any one help me on this. How can i achieve it.

office-sharepoint-onlineoffice-sharepoint-server-development
image.png (11.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JoyZ avatar image
0 Votes"
JoyZ answered EchoDu-MSFT commented

@RajivRanjan-6413,

First, export Search Results Web Part and edit it.

Number of pages in pagination UI is controlled by two variables in the Search Results web part:

 <property name="MaxPagesBeforeCurrent" type="int">5</property>
 <property name="MaxPagesAfterCurrent" type="int">5</property>

Then import the changed web part via site settings>choose web parts under Web Designer Galleries>upload it as shown below:

138657-image.png

Then remove the default search result web part, add the customized web part:
138658-image.png

You will now get this:

138688-image.png


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (4.7 KiB)
image.png (37.1 KiB)
image.png (37.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RajivRanjan-6413,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·

@RajivRanjan-6413,

I’m checking how the things are going on about this issue.

Please feel free to reply if there is any update.

0 Votes 0 ·

Hello @RajivRanjan-6413,

If Julie's reply helps you, please remember to accept her reply as answer via the "Accept Answer" button, it will be beneficial to others in this forum who meet the same issue in the future. Thanks for your understanding and cooperation.

0 Votes 0 ·