From the main project page:
Requirements
Drush Integration
Instead of downloading jquery.autopager manually, drush could be used to download the plugin in /js directory or sites/all/libraries if libraries module is enabled.
Drush command: drush dl-autopager
However I think some people might find this a little unclear because:
- Drush does not have to exist in order for the
sites/all/libraries path to be checked for the existence of jquery.autopager-1.0.0.js
- The file names / locations listed are a little confusing
- ... etc.
Anyway, I think it would be far more clear to replace the current description (as displayed above) with something like this:
Requirements
- The latest stable release of the Views 3 module.
- Download the jquery autopager plugin and place the file named
jquery.autopager-1.0.0.js into one of the following locations (depending on your setup):
- If you use the libraries module, you can create a folder named
autopager inside the existing sites/all/libraries folder, and then add the file jquery.autopager-1.0.0.js inside that folder so that it ultimately resides at sites/all/libraries/autopager/jquery.autopager-1.0.0.js
- If you do not use the libraries module, you can simply place the file inside the
sites/all/modules/views_infinite_scroll/js directory so that it ultimately resides at sites/all/modules/views_infinite_scroll/js/jquery.autopager-1.0.0.js
- You can also opt for integration with Drush (see below)
Drush Integration
Instead of downloading jquery.autopager-1.0.0.js manually, drush could be used to download the plugin in automatically.
Drush command: drush dl-autopager
Comments
Comment #1
SilviuChingaru commentedYes, you are right. I had to look in drush source to find what libraries subdirectory plugin is looking for .js file.
Comment #2
JulienF commentedthe path https://jquery-autopager.googlecode.com/files/jquery.autopager-1.0.0.js is no longer working. Just in case, here is a path that works : https://bitbucket.org/luksak/jquery-autopager/raw/2100c39767f97f6da18882...
Comment #3
emilflatz commented@JulienF Thanks!
Comment #4
guypaddock commentedAlso looks like this works too:
https://github.com/sagotsky/jquery-autopager
Comment #5
sam152 commentedThe 2.x version should be considered first if that works for your use case.
Comment #6
dx007 commentedthanks @JulienF
Comment #7
honza pobořil commented