How is this supposed to work?
In a view, I've set Use pager:Infinite Scroll | Infinite Scroll, Items per page: 2, Ajax: no, Show: fields.
What else am I supposed to do to get this to work?
If I inspect the page, I see the jquery.autopager-1.0.0.js has loaded as well as the views_infinite_scroll.js file.
All that happens is 2 items are loaded. No scrolling.
Any ideas?
Comments
Comment #1
tinny commentedbump
Comment #2
tinny commentedIf i enable ajax on the view i get the error 'Views infinite scroll pager is not compatible with Ajax Views. Please disable "Use Ajax" option.' so i atleast know views_infinite_scroll.js is being read.
There are no javascript errors.
Comment #3
tinny commentedMore info: the last list item of the the pager (the pager is hidden with display:none), is
<li class="pager-next last">Array</li>Comment #4
mr_wookie commentedDo you than have more items than fit in the viewport? It only works when the scrollbar shows apparently...
Comment #5
tinny commentedYep. Scroll bar showing 12 items with 3 pages.
I also installed jquery_update so now my jquery version is at v1.5.2.
jQuery.autopager v1.0.0
views module 7.x-3.1
views infinite scroll module 7.x-1.0
I do get this warning in chrome but i dont think its related
Comment #6
tinny commentedIt doesnt work in any browser on a mac or on a windows vm.
Comment #7
tinny commentedSome more info:
Doesnt work with any other field display eg. table, grid, html list or unformatted.
Turning Infinite views off, i enabled ajax with full pager and ajax works fine.
Im displaying title and body fields.
Comment #8
tinny commentedFound the problem. It was the theme.
Works in Bartik and all the default themes.
Does not work with Tao theme or Tao sub-themes.
Comment #9
tinny commentedSpecifically, the problem lies in Tao's
template.phpwith the functiontao_pager_link($vars)This is the code:
So to fix, in my template.php i added my own
function mytheme_pager_link($variables)and put the default code from drupal back in there. See: http://api.drupal.org/api/drupal/includes%21pager.inc/function/theme_pag...Comment #10
tinny commentedThe above 'fix' actually breaks normal Views pagers.
So is this considered a Tao issue or a Views Infinite Scroll issue?
Comment #11
ademarco commentedThe module's javascript behavior should actually be independent from how the theme handles pagination. I would propose to add an hidden html element containing a link to the next page: javascript behavior would use that field instead.
Comment #12
Yuri commentedWell, I use Bartik and I also can't get this module to work. Maybe the module should not be mentioned as stable on the project page.
Comment #13
Remon commented... or any theme that override pager theme function.
Comment #14
Remon commentedComment #15
honza pobořil commented