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).

CommentFileSizeAuthor
masonry-waypoints-views-load-more.patch682 bytesLuxian
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

davidneedham’s picture

davidneedham’s picture

Status: Needs review » Closed (duplicate)
wheelercreek’s picture

Thanks 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.

NWOM’s picture

Status: Closed (duplicate) » Reviewed & tested by the community

As 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.

NWOM’s picture

Status: Reviewed & tested by the community » Needs work

Setting 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.

Nikolay Shapovalov’s picture

Nice patch, but please use Drupal Coding Standarts.

All text files should end in a single newline (\n). This avoids the verbose "\ No newline at end of file" patch warning and makes patches easier to read since it's clearer what is being changed when lines are added to the end of a file.

so please don't remove new line at the end.

shevgeny’s picture

Is it possible to make a similar branch in 3.x?

Dom.’s picture

Status: Needs work » Closed (fixed)

Please 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.