Wednesday 22 April 2015

"Show more results" link doesnt show up in core results webpart - Sharepoint 2010

Good Afternoon Friends!

Hope you all are doing good! :)

Today we will talk little about Search Core result web part's property "Show more results" link.

In Core Results web part, you might have noticed that even though you have checked box "Show More Results Link", you are not able to see the "View more results >>" link on the screen even if the results are more than number mentioned in "ResultsPerPage" property.



After spending some time investigating with this issue and googling, I found that there is one more web part property which needs to be updated. Without this, View More link will not be visible.

 The property name is "MoreLinkUrl". But this property is not visible from UI.

So how to update this property?

Edit the Page and in edit mode, export the Core results web part. Open the exported web part in notepad. You will find "MoreLinkUrl" property like below.


Edit the property to add the link of newly created page in Pages library. This new page "MoreResults.aspx" will host a Core results web part of the same configuration and will show ALL results as per the search scope.


After editing the .webpart file, upload it to the Web parts gallery. And add that web part to the main page.

You will now see the "View More >>" link on the main page and it will have redirection link as "MoreResults.aspx".


Happy Learning! :)





No comments:

Post a Comment