Pager

Zyxware default image1
| 1 min read
In a recent project, I had to make use of pagers in two views. As per the requirement, I had to display different numbers of contents per page for both views. For the first view, I had to display 2 items per page and for the second one(search-results view) 10 per page.The problem I faced was, Eventhough if I had less than 10 search results, the page displayed the pager-links as per the contents of the first view. ie, both the views showed same number of pagers, which was wrong. If you want to know, how I fixed this, please read on.