Pagination

Example

Page 1 of 10
Previous Next Go to page

Code

HTML

<div class="text-center">
    <div class="cfa-pagination-short">
        <div class="cfa-pagination-pages">Page <span class="active">1</span> of <span>10</span></div>
        <span class="previous disabled"><a href="#">Previous</a></span>
        <span class="next"><a href="#">Next</a></span>
        <span class="go-to-page">Go to page <input /><button>Go</button></span>
    </div>
</div>
                

Documentation

Problem Being Solved

Very long sets of content may need to be paginated.

When To Use

Pagination can be used when there are performance or usability concerns about displaying dynamic content. It should primarily be used on search/browse results, or when the user must interact with long tables of dynamic content (membership approval).

When Not To use

Pagination should not be used for non-dynamic content. If the primary concern is "the page is too long", other solutions should be pursued (content con be shortened, or broken into smaller chunks).

Formatting

  • Wherever possible, the enterprise site will forgo pagination in favor of lazy loading.
  • Pagination on search will likely be handled through Coveo. We will try to match this pattern with their code as best we can.