Hi,

In Drupal7;

I used "views infinite scroll" module for infinite scroll, but I noticed that this module can't handle more than one infinite view in the same page and Views Infinite Scroll stops working.

Thanks

Comments

penyaskito’s picture

Project: Drupal core » Views Infinite Scroll
Version: 7.30 » 7.x-1.x-dev
Component: other » Code
Category: Task » Support request

Moved to the module queue.

saurabh.dhariwal’s picture

@jimmy.louis,

This is a set back of the views infinite scroll so I dropped it and use simple jquery and custom module to create my own infinite scroll, below are the steps to get it working:

1. In views .tpl file add one div with unique class and a numeric value which will represent the current page at bottom.
2. Create a menu through a custom module, which is been called in our Ajax request.
3. On scroll when unique class appears on screen, we can trigger an Ajax request to get content from url and need to pass the numeric value present in div.
4. When Ajax calls it append the view data into the view display also increase numeric value.
5. Numeric value is used to get next page content via Ajax by passing pagination in view, For that I used view_get_view() and set pagination using set_current_page().

Follow same steps for all views to get multiple infinite scroll.

Thanks!

honza pobořil’s picture

Status: Active » Closed (outdated)