Closed (outdated)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Dec 2010 at 20:37 UTC
Updated:
14 Mar 2019 at 18:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerHere is a patch.
Comment #2
merlinofchaos commentedHow about "Maximum number of pages"
I think, hm. "Number of pager links visible" and "Specify the maximum number of links to pages to display in the pager."
Hey while we're at it, are the 'next' and 'prev' text configurable too? If they are we should make those options as well.
Comment #3
dawehnerBoth tags and quantity is part of theme_pager in d6, already
Comment #4
merlinofchaos commentedOk, let's fix the bug and provide the option separately. The bug is more important.
Comment #5
dawehnerThe bug is already fixed in 7.x. See #984390: Full Pager incorrect behaviour when items per page is low
Comment #6
dawehnerSo this is a patch which adds tags and quantity.
The title/description in #2 is so much better!
Comment #7
merlinofchaos commentedCan I get one without these? :)
Comment #8
dawehnerSure.
Comment #9
sgabe commentedI were just looking for this option and I couldn't find it. The patch applies fine and seems to work, however the default tags look like this:
Comment #10
dawehner@sgabe
Mh the patch itself looks fine.
Do you have some kind of translation support on your site enabled?
Comment #11
agileware commentedRe the patch in #8:
1.
There are extra double quotes in the title and description.
2.
* Lots of TODOs and descriptions that duplicate titles.
* "Text for "first"-link" etc. - Why the dash between "first" and link instead of a space? Looks a bit messy.
3.
This part is irrelevant.
Also, for those who want a D7 version here it is (with points 1 & 3 from above fixed).
Powered by Dreditor.
Comment #12
marcvangend+1, will try to test the patch soon.
Comment #13
ericduran commented:-( I hate when I write a patch and then I think to look this up after I write it.
Anyways this looks good to me. I'm going to try and apply see what happens.
Switching to needs review to see if it still applies against the latest.
Comment #15
ericduran commentedFixing the test and uploading patch in a sec.
Comment #16
ericduran commentedAnd now here's the patch.
I fixed some of the formatting and also changed the text around because it had some todos. I based my text arounds Drupal cores wording for theme_pager.
Also the test should be fixed with this patch.
Comment #17
ericduran commentedHere's the same exact patch but without the simple-test verbose I put in there for debugging.
Either way both patches should pass :)
Comment #18
ericduran commentedOk last one I promise. This fixed a small mistake I had on the simple test.
Comment #19
tim.plunkettWhat's with 9? This could use a comment.
Where is index 2?
Comment #20
ericduran commentedThis is the default that's used now. This default is from the default 'quantity' variable for theme_pager in core.
Missed it good catch.
Comment #21
tim.plunkettIn that case, why hardcore the indices at all? Just leaving them out will accomplish the same thing.
Comment #22
dawehnerAwesome!!!
A short quote from theme_pager:
So i think 2 was the right number here :)
Comment #23
ericduran commentedHmm I guess that's where I got the 3 from. These seems like a bug in core regarding theme_pager.
Comment #24
ericduran commentedOk so this one has comments for the default the and weird theme_pager tags keys.
@tim.plunkett I didn't leave the default as blank because we're not checking what we pass to theme_pager, we're always passing it. So if we make our default nothing it would overwrite the standard 9 items per pager list.
Comment #25
dawehnerReviewed the patch and it look perfect. Let's get it in. Thanks for taking over the patch and push it forward.
Committed to 7.x-3.x
This patch should be worth for 6.x-3.x.
Comment #26
chris matthews commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue