Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using the latest recommended 6.x versions of Views and Custom Pagers, I set up a view to be used for a pager to page through all story posts. The view returns all 11 "Story" items which I want to be paged through; the pager is set to use this view and display on "Story" nodes as a block, and the block is added to the sidebar. However, the pager only pages through 10 of the 11 items. I've deleted and re-created both the view and the pager, cleared caches, disabled block caching; nothing. Custom Pagers still only sees 10 items.
Comment | File | Size | Author |
---|---|---|---|
#33 | custom_pagers-no-view-paging.patch | 587 bytes | Standart |
#12 | custom_pagers-node-items-fixed.zip | 3.26 KB | spiffyd |
Comments
Comment #1
huayen CreditAttribution: huayen commentedNotice this post right before I post a bug report.....I got exactly the same problem.
Reinstalled module, cleared cache....none solve it.
Comment #2
huayen CreditAttribution: huayen commentedI think this is a critical bug, since it completely prevents the goal of this module. Hope this can be fixed asap. Thanks.
Comment #3
Andrey Zakharov CreditAttribution: Andrey Zakharov commentedups, #279925: views and custom_pagers works strange (view->execute) :)
Comment #4
Andrey Zakharov CreditAttribution: Andrey Zakharov commentedfound solution:
Comment #5
samirnassar CreditAttribution: samirnassar commentedWhile not in a patch file the modified code works as advertised and didn't eat my children.
Comment #6
stellarvisions CreditAttribution: stellarvisions commentedI have 16 items in the view, displaying 4 per page.
The pager, with this patch, is now saying "1 of 4" not "1 of 16"
stella
Stellarvisions
Comment #7
epikur79 CreditAttribution: epikur79 commentedIm using a view with arguments and have the same problem. Applying the patch above does not help.
Adding
$view->pager['items_per_page'] = 0;
just before
$view->execute();
solves the issue for me however.
Comment #8
webchickComment #9
hansamurai CreditAttribution: hansamurai commentedI have the same problem, you can see it in action on my site, here's a link to the view page where there are more than 10 items but only the 10 most recent appear in the custom pager (click on one of the nodes near the top, the pager is in the sideblock).
http://firsthour.net/first-hour-review
Edit: epikur79's fix works for me, so you can't see it broken anymore. Sorry! :)
Comment #10
MGN CreditAttribution: MGN commentedI've tried both Vaulter's and epikur79's solution on views with and without arguments, on three different content types. Vaulter's patch doesn't solve the problem - still getting fewer items in the pager than in the view. epikur79's solution works in all the cases that I have tested.
Comment #11
spiffyd CreditAttribution: spiffyd commentedCan someone roll epikur79's solution into a patch? Thanks
Comment #12
spiffyd CreditAttribution: spiffyd commentedAttached is the module with epikur79's suggested changes. IT works for me and fixes the problem.
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedworked for me too, but noticed that the text 'prev post' and 'next post' are not used with the t function...
should be => t('prev post') and t("next post")
Should I post this as a feature request ?
Comment #14
spiffyd CreditAttribution: spiffyd commentedYou can try to roll a patch on this thread.
Comment #15
TomMynd CreditAttribution: TomMynd commentedHi,
the file from spiffyd works for me too.
Best regards, Tom
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedthe file that was provided does not work from me. i still only see 10 items instead of the 24 that i have.
has anyone found another solution?
Comment #17
clau_bolson CreditAttribution: clau_bolson commentedUse epikur79's solution.
The file to modify is custom_pagers.module.
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedMy views is set to 24 items and I used epikur79's solution but i still only get 10.
Comment #19
Anonymous (not verified) CreditAttribution: Anonymous commentednever mind i got it working
Comment #20
Anonymous (not verified) CreditAttribution: Anonymous commentedhow ? What was your problem ? Maybe your solution might help others like you...
Comment #21
Anonymous (not verified) CreditAttribution: Anonymous commentedit had to do with both solutions. i did #4 then #7 but with installing the current module then only do solution #7 it works fine.
it turns out it was an error on my part.
Comment #22
dergachev CreditAttribution: dergachev commentedsee this http://drupal.org/node/315032#comment-1134689
Comment #23
Flying Drupalist CreditAttribution: Flying Drupalist commentedPlease commit?
Comment #24
Mark Theunissen CreditAttribution: Mark Theunissen commentedSubscribing
Comment #25
yoeld CreditAttribution: yoeld commentedDoes not work for me. I have 18 items, but custom pagers sees only 10 ... . Moreover, it does not respect the sorting order as I defined in the view.
Comment #26
joshuast CreditAttribution: joshuast commentedsubscribing
Comment #27
robertDouglass CreditAttribution: robertDouglass commentedConfirm that this patch fixes the problem:
(Sorry for no real patch)
Comment #28
robertDouglass CreditAttribution: robertDouglass commentedConfirm that this patch fixes the problem:
(Sorry for no real patch)
Comment #29
awakenedvoice CreditAttribution: awakenedvoice commentedSubscribing. I'm seeing the same issue on a development site I'm building. The view returns more than 10 items but the page only goes up to the 10th item. You can see it in action at http://new.julietlofaro.com/gallery.
Rob Safuto
Comment #30
awakenedvoice CreditAttribution: awakenedvoice commentedI have made the adjustment in #28 and it works on a one page view. Where previously I could page to 10 of 14 items I can now I can page to all of the items on the page.
Rob Safuto
Comment #31
nnewton CreditAttribution: nnewton commentedLast solution works for me.
Comment #32
Flying Drupalist CreditAttribution: Flying Drupalist commentedCommit perhaps?
Comment #33
Standart CreditAttribution: Standart commentedPatch against 6.x-1.x-dev.
Comment #34
Mark Theunissen CreditAttribution: Mark Theunissen commentedPlease commit.
Comment #35
eaton CreditAttribution: eaton commentedCommitted to the 6.x 1.x dev branch, will be rolled into a new release shortly. Thanks!
Comment #36
Mark Theunissen CreditAttribution: Mark Theunissen commentedThank you!
Comment #38
garywg CreditAttribution: garywg commentedThank you for posting this. This fixed my problem. Thanks epikur79. The posting advice is right. If you look a little bit you usually find the answer.
garywg
Comment #39
krisrobinson CreditAttribution: krisrobinson commentedI had this problem as well, I upgraded to the latest dev release with the committed fix and solved my problem. Thanks a million.
Comment #40
argosmm CreditAttribution: argosmm commentedThanks Denis
worked for me too