Jump to content

Problem with Pagination Module


dreerr
 Share

Recommended Posts

I'm at the beginning of a new page and experience odd behavior of the Pagination. I activated the Pagination in the URLs tab and only used the Example #2 from http://processwire.com/api/modules/markup-pager-nav/
But when I try to get to access another page I get to page1 again, page2 is also removed from the URL again.

Example here http://www.wp11196092.server-he.de/werke/auf-papier/

whole code of the template

$o;
$works = $pages->find("parent=$page, limit=8"); 
foreach ($works as $work) {
    $thumb=$work->image->size(250, 250);
    $o.="<li><a href='{$work->url}'>
                        <figure>
                            <img src='{$thumb->url}' alt='{$work->title}'>
                            <figcaption>{$work->title}</figcaption>
                        </figure>
                    </a></li>";
}
$o='<ul class="thumbs">'.$o.'</ul>'.$works->renderPager();
$out->addArticleWithNav($o,$page->siblings);

Using 2.3.1

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...