Infinite scroll stops working when views display formatter is grid

Created on 17 February 2022, about 3 years ago
Updated 14 December 2023, over 1 year ago

Problem/Motivation

When creating a view with display format "grid" the views infinite scroll doesn't work anymore.

Steps to reproduce

  1. Create a view with a block or page
  2. Choose as display formatter "Grid"
  3. Add some fields
  4. Choose "Infinite scroll" as your pager
  5. Make sure you enable "Use ajax"

When clicking now on "More" it's not loading anything. Also checked by doing this on a Vanilla Drupal 9 install.

Proposed resolution

Make sure infinite scroll works with the "Grid" display format

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands interactivex

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.

  • The dom_id was missing from the Olivero front page template. That's why it wasn't working for me at least. πŸ› Olivero views front page template missing dom_id RTBC

  • πŸ‡ΊπŸ‡ΈUnited States mmrtnt

    I just encountered this today - not in Olivera, in an override in a Bartik sub-theme - after upgrading from Drupal 8.9 to 9.5.11.

    Here's what I did to resolve it, in case someone else lands here after running into it while upgrading:

    • Replace core/Bartik with contrib/Bartik
    • Upgrade drupal/views_infinite_scroll to ^2.0 in Composer
  • πŸ‡¨πŸ‡΄Colombia kayograco

    I solved it.

    I have two displays in the same view, a page and a block. I activated ajax for both (all displays), but infinite scroll just for one, the page; for the block I just selected the standard pager to show all items.

    In order for this to work, on the page I selected the option for the user to click on "load more content" and then back to autoload content.

    Sorry my Drupal instance is in spanish, so I don't know exactly the english names.

  • haritha c β†’ made their first commit to this issue’s fork.

Production build 0.71.5 2024