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:

  1. 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
  2. The file names / locations listed are a little confusing
  3. ... 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

SilviuChingaru’s picture

Yes, you are right. I had to look in drush source to find what libraries subdirectory plugin is looking for .js file.

JulienF’s picture

emilflatz’s picture

@JulienF Thanks!

guypaddock’s picture

Also looks like this works too:
https://github.com/sagotsky/jquery-autopager

sam152’s picture

The 2.x version should be considered first if that works for your use case.

dx007’s picture

thanks @JulienF

honza pobořil’s picture

Status: Active » Closed (outdated)