Pagination Controls in Hosted Display

When building pagination for a hosted display you can access pagination properties in the Search Results Pagination template using $this->PROPERTYNAME. In the Search Results Content template you must use $this->paginator->getPages()->PROPERTYNAME.

Search Results Pagination Template Example:

Current Page: <?= $this->current ?>

Search Results Content Template Example :

Number of Pages: <?= $this->paginator->getPages()->pageCount ?>

The following is a list of pagination properties available in SearchSpring:

Property Type Description
first integer First page number (i.e., 1)
firstItemNumber integer Absolute number of the first item on this page
firstPageInRange integer First page in the range returned by the scrolling style
current integer Current page number
currentItemCount integer Number of items on this page
itemCountPerPage integer Maximum number of items available to each page
last integer Last page number
lastItemNumber integer Absolute number of the last item on this page
lastPageInRange integer Last page in the range returned by the scrolling style
next integer Next page number
pageCount integer Number of pages
pagesInRange array Array of pages returned by the scrolling style
previous integer Previous page number
totalItemCount integer Total number of items