Problem/Motivation
Checking "Disable filters" for a block display of a view does not add the corresponding options to the "Configure block" dialogue in "Block layout".
Steps to reproduce
- Install and enable Chaos Tools and Chaos Tools Views.
- Create or edit a block display for a view with fields, filters and sort criteria.
- Click the linked text next to "Allow settings" (probably "Items per page").
- Check all checkboxes (probably "Items per page", "Pager offset", "Pager type", "Hide fields", "Reorder fields", "Disable filters", "Configure sorts"), and save the view.
- Place the block via the block layout.
- Note that there are options to set the "Items per block" (page), "Pager offset" and "Pager" (type); to "Hide fields" and "Reorder fields"; and to "Configure sorts" (i.e. sort order) - but not to "Disable filters".
- Note also that there are no corresponding errors in the Recent log messages.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot 2020-10-28 at 16.11.57.png | 190.1 KB | darrenwh |
| #3 | ctools-Disable_filters_only_applies_to_exposed_filters-3165367-3.patch | 1.85 KB | paulocs |
Comments
Comment #2
robbm commentedActually, it does allow exposed filters to be disabled. And maybe that's all it's intended to do. If so, that might call for the labels to be clarified (e.g. "Disable exposed filters").
Title updated for clarity.
Comment #3
paulocsAs @RobbM said, "Disable filters" only works with exposed filters and it is intended to do so.
It is good point to change the label. I provided a patch for it.
Thanks!
Comment #4
darrenwh commentedJust trying to replicate this based on the instructions.
Using a clean build of Drupal 8.9.7, created a basic view with an exposed sort on order, have checked all of the boxes and applied the patch but can't see the disable filter option?
Comment #5
darrenwh commented