Fork me on GitHub

Pager off by 1 when using pageritems?  Bottom

  • I'm using the "pageritems" template for the pager plugin, and the pages are off by 1 (Page 2 point to page 1, p8 to p7, and last page is missing).

    Can anyone confirm this behaviour? (I've seen it in Admin_Messages, pagemaster, my own modules).

    I'm using display="startnum"

    I also believe there used to be a parameter "shift" for the pager plugin (many modules still use "shift=1" in their templates, e.g. pagemaster). That parameter seems no longer supported and might explain the pagination error I now see.

    Just want to see this confirmed by someone else who is using pageritems before I post it as a bug (zikula.org uses the image pager, which only shows prev/next so can't check here). If it turns out to be a bug, I will post the fix.

    thanks,

    stefaan



    edited by: marsu, datetimebrief
  • anyone using a pager that shows intermediate pages (i.e. not just prev/next page) and that can confirm whether or not there's an issue?

    thanks

    stefaan
  • I confirm, I wanted to use another pager style...
    function.pager.php
    line 246

    Code

    $pager['args'][$pager['posvar']] = $currItem + 1;
    did the trick.

    - Igor

This list is based on users active over the last 60 minutes.