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 issue: when using "load more" as the pager on a nested/embedded view, the content is replaced and not added to the view.
This has been an issue for the Drupal 7 version of the module and seems to persist into D8.
D7 ticket: https://www.drupal.org/node/2736419
We have tested with various combinations of Ajax being turned on/off on the parent and embedded views display, with no joy.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2853524-6.patch | 1.69 KB | malcolm_p |
Comments
Comment #2
blazey CreditAttribution: blazey at Amazee Labs commentedI think it's a core issue. Pagers in embedded views are initialized in the context of the parent view. This patch fixed it for me.
Comment #3
ckaotikSo for anyone else wondering, the mentioned patch did not help in my case. To get this (somewhat) working I had to ...
attachment_before
andattachment_after
outside of the main view wrapper (which contains the js-dom-id)But even then VIS would not join two html list items together, but that is a different topic.
Changed to NW because we can't review if there's no patch.
Comment #4
malcolm_p CreditAttribution: malcolm_p commentedThe solution in https://www.drupal.org/project/drupal/issues/2858890 appears to work for me to get nested views to page properly via AJAX.
Comment #5
malcolm_p CreditAttribution: malcolm_p commentedComment #6
malcolm_p CreditAttribution: malcolm_p commentedIn addition to the patch in #2858890 I actually needed to adjust the selectors to not find the pagers in the nested views.
Comment #7
zenimagine CreditAttribution: zenimagine commentedThe #6 patch does not work. I am on Drupal 8.5.5 and version 8.x-1.x-dev of the module.
I hope this problem will be solved quickly because it lasts a long time.
Comment #8
handkerchiefAny news?
Comment #9
handkerchiefWith 8.7.7 an this patch: https://www.drupal.org/project/drupal/issues/2858890#comment-13322235
...it works for me without additional patch like #6
Comment #10
AnybodyIs this a duplicate perhaps and one of them should be closed? #2918352: After update to Drupal 8.4 VIC replace results instead of appending What about the patch over there?
Comment #11
AnybodyLooks like a duplicate of #2918352: After update to Drupal 8.4 VIC replace results instead of appending
Comment #12
Anybody