Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300751

Views display: adding more granularity to the ‘use ajax’ functionality (display/filters vs. pager)

$
0
0

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
user interface changes


Viewing all articles
Browse latest Browse all 300751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>