Drupal views: adding more granularity to the ‘use ajax’ functionality

Created on 29 May 2024, 7 months ago
Updated 19 July 2024, 6 months ago

Problem/Motivation

When implementing the search API for my website, I found myself in the situation where I needed to be able to activate the ‘use ajax’ functionality for the ‘Pager’ part but not for the ‘Exposed filters’.
Acutally, it's not possible to dissociate these 2 functions so I decided to find out how to make this possible.

Proposed resolution

My idea for adding this functionality is to add 3 checkboxes for paging, sorting and exposed filters, allowing the user to select which aspect they want to activate AJAX on.

Remaining tasks

In my research, I managed to address 2 of the 3 points. Unfortunately, I haven't been able to find where to include the sorting part. From what I've understood, it's a matter of enabling AJAX on the sorting of the view's backend arrays, but it's impossible to get my hands on the relevant code.

User interface changes

A list of checkboxes displayed when the user activates the ‘Use ajax’ option

Feature request
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated 10 minutes ago

Created by

🇨🇭Switzerland jschneidertcs Geneva

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024