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.
I'm using the following modules to provide a nice list of nodes:
- Views Load More
- Waypoints (for infinite scrolling)
- Masonry
- Masonry Views
After AJAX requests, new items are displayed over the old ones. I managed to fix this by calling reload on containers that were already initialized. Patch attached.
Not sure if it the right way to do it and also I'm not sure if it should go in this module (maybe can be integrated in Masonry Views or Views Load More).
Comment | File | Size | Author |
---|---|---|---|
masonry-waypoints-views-load-more.patch | 682 bytes | Luxian |
Comments
Comment #1
davidneedhamThis appears to be fixed in #1808018: Make work with Views Infinite Scroll.
Comment #2
davidneedhamComment #3
wheelercreek CreditAttribution: wheelercreek commentedThanks for this patch - works great!
Also, just for clarification, this issue is not actually a duplicate as indicated. The "Views Infinite Scroll" is a different module from "Views Load More" + "Waypoints". The issue is similar, but Views Load More & Waypoints combination allows you to have multiple view-blocks on a single page and still handles infinite scrolling.
The Views Infinite Scroll module doesn't support that.
Comment #4
NWOM CreditAttribution: NWOM commentedAs stated above. This isn't a duplicate, but instead a patch for a different set of modules that provide more functionality. I hope it's ok that I'm re-opening this.
Comment #5
NWOM CreditAttribution: NWOM commentedSetting it back to "needs work" since I didn't get a chance to test it myself. I ended up using a different combination of modules.
Comment #6
Nikolay ShapovalovNice patch, but please use Drupal Coding Standarts.
so please don't remove new line at the end.
Comment #7
shevgenyIs it possible to make a similar branch in 3.x?
Comment #8
Dom. CreditAttribution: Dom. commentedPlease see patch here #1808018: Make work with Views Infinite Scroll and more generally latest 3.x-dev branch as the issue is fixed.
I confirm after testing it with Views More Load module and WayPoints, also testing with ajax mode, and with infinite scroll mode.