Pager

ID: mantra_starter:pager

Pager for views and other lists. Full and mini pagers, plus additional options. Includes features from these modules: - https://www.drupal.org/project/dc_pager - First/last page links as numbers in full pager - https://www.drupal.org/project/views_pager_mini_count - Page/results count in mini pager

Status: experimental

Name Label Type Description
heading_id Heading id String
heading_level Heading level Enum Level of the visually hidden "Pagination" heading, h1 to h6. Anything else, or nothing, is h4.
Allowed values: h1, h2, h3, h4, h5, h6
current Current page Number One-based current page, full variant only. The mini variant reads items.current instead, which is where the views mini pager puts it.
Integers only
ellipses Ellipses Unknown ⚠️ {"type":"object"}
first_last_numbers First/last links as page numbers Boolean Full variant only. Puts previous and next outside first and last (previous, 1 … 20, next) rather than inside them as core does (first, previous … next, last). Set by the Mantra views pager.
responsive Controls on their own row on small screens Boolean Full variant only, on unless set to false. Below `md`, moves first, previous, next and last to a row above the page numbers.
Default: true
icons Icons Unknown ⚠️ {"properties":{"previous":{"properties":{"pack_id":{"type":"string"},"icon_id":{"type":"string"},"settings":{"type":"object"}},"type":"object"},"next":{"properties":{"pack_id":{"type":"string"},"icon_id":{"type":"string"},"settings":{"type":"object"}},"type":"object"},"first":{"properties":{"pack_id":{"type":"string"},"icon_id":{"type":"string"},"settings":{"type":"object"}},"type":"object"},"last":{"properties":{"pack_id":{"type":"string"},"icon_id":{"type":"string"},"settings":{"type":"object"}},"type":"object"}},"type":"object"}
icon_only Icons only Boolean Show the icon of a link without its text. The visually hidden text ("Previous page") still names the link. Links without an icon keep their text.
Default: false
separators Separators Unknown ⚠️ {"properties":{"count":{"type":"string"},"range":{"type":"string"},"range_total":{"type":"string"},"both":{"type":"string"}},"type":"object"}
status_toggle Show the page count and the results one at a time Enum Mini variant, with both items.total and items.range only. Instead of showing both where they fit, show one at a time, as a button switching to the other: "count" starts with the page count, "range" with the results. Empty, both are shown where they fit.
Default: ""
Allowed values: , count, range
items Items Unknown ⚠️ {"type":"object"}

Mini

Mini pager links. Page only option skips count query.

First page

Middle

Last page

Custom labels

Page count

Result range

Page count and results

Page count or results, tap to switch

Results or page count, tap to switch

Custom separators

First and last

Icons only

Full

Numbered pager links. Shows ellipsis for skipped pages when number of visible links is set.

First page

Middle

Last page

3 visible pager links

5 visible pager links, characters only

Show all

First/last as page numbers

First/last as page numbers, first page

First/last as page numbers, second page

Icons

Icons only, 5 visible pager links

Responsive

Optional responsive styles.

Full pager

First page

Middle

Last page