I'm populating a blog using 2.0 beta, and have entered 10 posts so far.
On the landing page, the first 5 are displayed - but the pagination shows Prev 0 Next, but no way to access the next page (there are no links on Prev or Next, and the 0 links back to page 0 - presumably the default landing page).
I've replaced the pagination helper method as you suggested but am still having trouble - I think the problem was due to the const int ITEMS_PER_PAGE = 20; in uBlogsyListPosts.cshtml.
I had changed the number of items to display per page to 5 in the macro on the landing page template, but the ITEMS PER PAGE were still set to 20. So the pagination thought there would be just one page (as there were fewer than 20 posts) but the page only displayed 5 items.
As a suggestion, it would probably be an enhancement if this could be entered in just one place, rather than having to update two places if you want to change the number of posts displayed on each page.
2.0 beta - pagination not working
I'm populating a blog using 2.0 beta, and have entered 10 posts so far.
On the landing page, the first 5 are displayed - but the pagination shows Prev 0 Next, but no way to access the next page (there are no links on Prev or Next, and the 0 links back to page 0 - presumably the default landing page).
Any ideas how to correct this?
Thanks
Allan
Sorry for the delayed response.
I'll fix this in the next release.
Try replacing the pagination helper method with this one.
thanks - any idea when the next release is likely to be available?
some time before november, then hopefully a full full full release not too long after that.
FYI I also plugged in Sebastiaan's excellent (and simple) pager into v.1.32 and it works like a charm.
Hi Anthony
I've replaced the pagination helper method as you suggested but am still having trouble - I think the problem was due to the const int ITEMS_PER_PAGE = 20; in uBlogsyListPosts.cshtml.
I had changed the number of items to display per page to 5 in the macro on the landing page template, but the ITEMS PER PAGE were still set to 20. So the pagination thought there would be just one page (as there were fewer than 20 posts) but the page only displayed 5 items.
As a suggestion, it would probably be an enhancement if this could be entered in just one place, rather than having to update two places if you want to change the number of posts displayed on each page.
Thanks
Allan
is working on a reply...