When I use views_embed_view to display a view which uses Views Infinite Scroll then I get the "Views Infinite Scroll module can't handle more than one infinite view in the same page." alert.

Views Infinite Scroll behaves fine for the view I'm using if I don't use the embed method. And if I override this error in views_infinite_scroll.js by disabling the if statement on line 12:

if(Drupal.settings.views_infinite_scroll.length == 1) {

then it works fine for embed.

Am I doing something wrong here or does the module code need tweaking to allow embeds?

Comments

Remon’s picture

Sorry for replying too late on your issue, I'll take a look at it ASAP.

klokie’s picture

Same issue for me; fixed by the same method listed in the summary.

amandine_m’s picture

Same issue

sebyoga’s picture

Small addition of information,

If you use the mode of views "Table of field", infinite scroll (js) search the structure "table tbody". (View on Drupal.setting...)

If you use this template, and they are not this structure, you are a js error "top : null".

Sebastien

honza pobořil’s picture

Issue summary: View changes
Status: Active » Closed (outdated)