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.
Problem
Due to a bug in views contrib module Duplicate pager using "Global: View area" (https://www.drupal.org/project/views/issues/1132904).
The fix for that mentioned bug is to use different pager ids for each view and it does seems to solve the issue, but it doesn't solve issue in this module because there is no pager id option available.
Proposed solution
Provide a pager id option and configure the module accordingly.
Comment | File | Size | Author |
---|---|---|---|
#5 | views_infinite_scroll_pager_id_setting-2945826-5.patch | 2.58 KB | guptahemant |
Comments
Comment #2
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedhere is a patch to provide the required setting.
please review.
Comment #3
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedComment #4
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedUse patch provide in this https://www.drupal.org/project/views_infinite_scroll/issues/2736419#comm... to solve the content loading issue as well.
Comment #5
guptahemant CreditAttribution: guptahemant as a volunteer and at QED42 commentedhere is an updated patch which also provides the default value for the pager id.
Comment #6
rcodina CreditAttribution: rcodina commentedThank you @guptahemant! This works like a charm on latest dev version!
Comment #7
julien.reulos CreditAttribution: julien.reulos commentedMarked #2810171: infinite scroller should allow setting pager id as duplicate of this issue.
Comment #8
julien.reulos CreditAttribution: julien.reulos commentedConfirming that the patch applies correctly on the last dev version of the module, exposes a new id input field on the pager settings of the view, and avoids conflict between 2 pagers on the same page.
Also, cross referencing #2845996: Use pager ID to avoid pager conflicts for info.
Comment #9
izmeez CreditAttribution: izmeez commentedThis patch is related to #2618000: Input required not working with infinite scrolling and if that one is committed this one can be easily re-rolled with it.
Comment #10
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commented