Add views exposed filter support

Created on 30 January 2023, almost 2 years ago
Updated 18 September 2024, about 2 months ago

Problem/Motivation

It would be great if the form widget can be used in basic views exposed filter as well as using the better_exposed_filters module. The default date format needs to be configured the same way as datetime_flatpickr configuration.

Steps to reproduce

Proposed resolution

A sub-module can be added for the better_exposed_filters module support.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇵🇭Philippines madelyncruz

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

Comments & Activities

  • Issue created by @madelyncruz
  • 🇭🇺Hungary nagy.balint

    It seems that to use it in the normal exposed filter we would have the following options:
    - Override and replace the Date filter handler class (since Drupal does not provide any filter widget plugins)
    - Create a new handler for the datetime fields
    - Create a generic configuration form which can inject the flatpickr library on any item based on a selector and with the generic config (might not work out)

    The better exposed filter could work better as that module provides the mechanism to define a widget. Of course it also brings in the dependency, but as a sub module it could be fine.

  • 🇮🇳India Madhu Kumar M E

    The Better Exposed Filters module integrates with the date type fields, including the date popup. You can use this module to easily add an exposed filter with the date popup.

  • Status changed to Fixed 2 months ago
  • 🇭🇺Hungary nagy.balint

    I added initial BEF integration. For now only default config and date only.

    This can be extended later with the ability to define the settings as well in a follow up issue.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024