ASPX templates
Version 5.x > ASPX templates > Seach Pagination Help View modes: 
User avatar
Member
Member
R100 - 8/22/2010 10:40:56 AM
   
Seach Pagination Help
Hi,

I am new to Kentico development and I have a small query regarding my search page.

In my search page I have a CMSSearchDialog and CMSSearchResults control.

My page requires pagination to be displayed on both top and bottom of my search results. At the moment I have enabled the pagination on my search results control and the page numbers only get shown at the bottom.

Is there a way I can get the pagination using Kentico controls to display at the top and bottom of my results?

I would be grateful if someone could help me.

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/20/2010 7:43:22 AM
   
RE:Seach Pagination Help
Hi,

You will need to modify the search results control (\CMSModules\SmartSearch\Controls\SearchResults.ascx).

As you can see in the ascx code, there is one UniPager control under the place holder. So you need to copy the uni pager and paste it above the place holder and change its ID. Then, in the code behind you need to duplicate all the code for "pgrSearch" pager and add the same code for the second pager ID.

Best regards,
Juraj Ondrus