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.
The attached patch implements the option to wrap lists from the beginning, end, or both.
Comment | File | Size | Author |
---|---|---|---|
#8 | custom_pagers-wrapping-443210-8-D7.patch | 3.13 KB | David Lesieur |
#7 | custom_pagers-wrapping-443210-7-D7.patch | 3.13 KB | David Lesieur |
#4 | custom_pagers-wrapping-443210-4-D7.patch | 3.08 KB | David Lesieur |
#1 | custom_pagers_wrap_443210.patch | 3.04 KB | drewish |
custom_pagers_wrap.patch | 3.03 KB | raspberryman |
Comments
Comment #1
drewish CreditAttribution: drewish commentedout of date. here's a re-roll.
Comment #2
drewish CreditAttribution: drewish commentedforgot to mention that it needs and update function for the schema changes.
Comment #3
benklocek CreditAttribution: benklocek commentedAny chance that this will get committed?
Comment #4
David Lesieur CreditAttribution: David Lesieur commentedHere's an updated patch for the D7 version. The update function is provided and the interface text is improved (I think).
Comment #5
sw3b CreditAttribution: sw3b commentedGood work on the patch for D7... Merci @David pour le bon travail !!! ;o)
Comment #6
David Lesieur CreditAttribution: David Lesieur commentedI have noticed that error messages get thrown when $nav['full_list'] is empty. For example, this happens when the custom pager is based on a view that returns no results. The patch will need a little work to add more validation.
Comment #7
David Lesieur CreditAttribution: David Lesieur commentedHere's a new patch that fixes the error messages.
Comment #8
David Lesieur CreditAttribution: David Lesieur commentedActually this patch is better. It also avoids wrapping when the list being paged on has a single item.
Comment #9
sw3b CreditAttribution: sw3b commentedWork for me thanks !