Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In a regular views date filter you can configure the year range for the filter fields. In the Search API date filter this configuration isn't available. I will make a patch for this functionality.
Comments
Comment #1
cgoffin CreditAttribution: cgoffin commentedAnd here the patch to add this functionality to the filter.
Comment #2
cgoffin CreditAttribution: cgoffin commentedAdded extra checks to make sure the date_api module is used.
Comment #3
cgoffin CreditAttribution: cgoffin commentedComment #4
drunken monkeyGood idea, thanks!
However, your second patch is empty.
Comment #5
cgoffin CreditAttribution: cgoffin commentedSorry, something went wrong with the patch generation. Here is a new one.
Comment #6
cgoffin CreditAttribution: cgoffin commentedComment #7
drunken monkeyLooks very good, thanks!
Committed.