Closed (fixed)
Project:
Drupal core
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Feb 2004 at 13:50 UTC
Updated:
29 Feb 2004 at 16:20 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pager.inc.patch | 2.54 KB | jeremy |
| pagertest2.php | 637 bytes | moshe weitzman |
Comments
Comment #1
jeremy commentedThe 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.
Comment #2
dries commentedCommitted to HEAD. Thanks.
Comment #3
(not verified) commented