I am trying to get multiple pagers on one web page. I'm certain this used to work, but is broken now. The attached test file illustrates the problem.

Even using a single *named* pager on a page is broken. For example, note the querystring on the pager links while viewing the attached file. If someone fixes this, then uncommenting the second part of the attached file will demonstrate whether 'multiple pagers' is fixed as well.

CommentFileSizeAuthor
#1 pager.inc.patch2.54 KBjeremy
pagertest2.php637 bytesmoshe weitzman

Comments

jeremy’s picture

Assigned: Unassigned » jeremy
StatusFileSize
new2.54 KB

The first problem is in your test code. The pagers aren't named, but numbered... That is, the first should be 0, the second 1, etc... So in your code where you have "'a'" replace it with "0", and where you have "'b'" replace it with "1". The first pager will now work fine... (This is critical to how multi-element support was designed -- as an array)

The second problem is that pager_link() has been heavily re-written since I last looked at it. For the better, I suppose. But it needs the attached patch (or something similar) for multiple pagers on the same page to work.

Please make the above changes and apply my patch, and let me know if it works for you.

dries’s picture

Committed to HEAD. Thanks.

Anonymous’s picture