Add 'Jump to page' feature for views pager

Created on 1 September 2016, over 8 years ago
Updated 24 January 2025, 2 months ago

How about adding a jump to page feature when using the pager in views it would improve usage of the issue queue as well.

โœจ Feature request
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component

views.module

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany DiDebru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands johnv

    BTW,
    I was already surprised that my view on the Drupal issue queue did not have a pager (or only a min pager)
    And I was amazed by #3 that this can be influenced in the URL:
    This gives the mini pager:
    https://www.drupal.org/project/issues/drupal?text=pager&status=Open โ†’
    And this gives the full pager:
    https://www.drupal.org/project/issues/drupal?status=Open โ†’

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia anjalibarad

    Problem/Motivation

    Currently, Views pagination only allows users to navigate using previous/next arrow links. This can be inefficient when dealing with large datasets, as users must click through multiple pages to reach a specific one. Adding a direct page number input field will improve usability and efficiency.

    Steps to reproduce

    • Create a View with pagination enabled.
    • Display the View and attempt to navigate to a specific page.
    • Observe that there is no option to enter a page number directly.

    Proposed resolution

    • Introduce a text input field alongside the existing pagination controls.
    • Allow users to enter a page number and navigate directly when they submit the input.
    • Ensure proper validation to prevent invalid page numbers (e.g., negative numbers, non-numeric input, exceeding total pages).
    • Integrate seamlessly with Drupalโ€™s Views system without breaking existing pagination functionality.

    Remaining tasks

    • Develop and test the pagination input field functionality.
    • Implement form validation for the page number input.
    • Ensure compatibility with different themes and responsive layouts.
    • Write automated tests to validate the functionality.
    • Update documentation and user guides for the new feature.

    User interface changes

    • A new input field will be added to the pagination controls in Views.
    • Users will be able to enter a page number and press "Go" or "Enter" to navigate.
    • Improved user experience for large datasets in Views.

    Introduced terminology

    • Pagination Input Field: A new input box allowing users to enter a page number directly.

    API changes

    • No API changes

    Data model changes

    • No changes to the data model.

    Release notes snippet

    The Views pagination system now includes an input field allowing users to enter a page number directly, improving navigation for large content lists. This enhancement provides a more efficient way to jump to a specific page without excessive clicking.

Production build 0.71.5 2024