Jump to content

Problem with pagination


buothz
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...