Add views exposed filter support

Created on 30 January 2023, over 1 year ago
Updated 15 September 2023, 10 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

Active

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.

Production build 0.69.0 2024