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.
It would be very usefull if someone (like me) wanted to supply paging with additional information.
Use case:
Comments pages with pages named in [first_comment_number last_comment_number] format.
Paging e.g. "previous [1-10] [11-20] [21] next"
If user changes sort order, he, naturally would expect paging change to such
"previous [21-12] [11-2] [1] next"
Currently to implement that I use _comment_get_display_setting('sort')
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI think you may've misfiled this; this looks like you're talking about Drupal's core pager, but this project is paging.module which allows you to break up a single node into multiple pages. It doesn't do comment paging.
Comment #2
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedThanks merlin! Changing project for this issue.
Comment #3
PasqualleComment #4
cafuego CreditAttribution: cafuego commentedHaving the 'Next' link suddenly start counting down seems like pretty bad usability to me.
The pager counts through pages of content as requested by the user, if the user changes their request, it would make far more sense to me if the pager would jump back to the first page of output if the sort order changes, rather than change its page link ordering.