buothz Posted April 25, 2012 Share Posted April 25, 2012 I can not understand why in this case $yachts = $pages->find("template=newyachts, limit=3, sort=date"); foreach($yachts as $s) { ... } $pagination = $yachts->renderPager(); echo $pagination; Pagination works well... In this case $yachts = $pages->get("$page->path")->find("template=newyachts, limit=1, sort=date"); foreach($yachts as $s) { ... } $pagination = $yachts->renderPager(); echo $pagination; don't work... In both cases, I have activated the url -> allow pages where is the mistake? Thank you. Link to comment Share on other sites More sharing options...
Soma Posted April 25, 2012 Share Posted April 25, 2012 http://processwire.com/api/modules/markup-pager-nav/ you may want to read this again. It says any limit greater than n=1. Link to comment Share on other sites More sharing options...
buothz Posted April 25, 2012 Author Share Posted April 25, 2012 http://processwire.c...rkup-pager-nav/ you may want to read this again. It says any limit greater than n=1. lol! I'm an idiot! I've put only one because I had only 2 items in that category.. Link to comment Share on other sites More sharing options...
ryan Posted April 25, 2012 Share Posted April 25, 2012 This has come up a few times, so thinking I should remove that limitation and make it so that you can still paginate with a limit=1. I'll look into this. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now