Sometimes it is necessary to show different types of paginated objects in the
same page. In this case we have to associate a different querystring key
to every pagination.

Normally, the key used is the one specified in
settings.ENDLESS_PAGINATION_PAGE_LABEL (see Customization),
but in the case of multiple pagination the application provides a simple way to
override the settings.

If you do not need Ajax, the only file you need to edit is the template.
Here is an example with 2 different paginations (entries and other_entries)
in the same page, but there is no limit to the number of different paginations
in a page:

{%loadendless%}{%paginateentries%}{%forentryinentries%}{# your code to show the entry #}{%endfor%}{%show_pages%}{# "other_entries_page" is the new querystring key #}{%paginateother_entriesusing"other_entries_page"%}{%forentryinother_entries%}{# your code to show the entry #}{%endfor%}{%show_pages%}

The using argument of the paginate template tag allows
you to choose the name of the querystring key used to track the page number.
If not specified the system falls back to
settings.ENDLESS_PAGINATION_PAGE_LABEL.

In the example above, the url http://example.com?page=2&other_entries_page=3
requests the second page of entries and the third page of other_entries.

The name of the querystring key can also be dinamically passed in the template
context, e.g.:

{# page_variable is not surrounded by quotes #}{%paginateother_entriesusingpage_variable%}

Obviously each pagination needs a template for the page contents. Remember to
box each page in a div with a class called endless_page_template, or to
specify the container selector passing an option to $.endlessPaginate() as
seen in Digg-style pagination and Ajax.

The call to $(‘#entries’).endlessPaginate() applies Ajax pagination starting
from the DOM node with id entries and to all sub-nodes. This means that
other entries are left intact. Of course you can use any selector supported
by jQuery.

Refer to the JavaScript reference for an explanation of other features like
calling $.endlessPaginate() multiple times in order to customize the behavior
of each pagination in a multiple pagination view.