Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Views Filter
Priority:
Major
Category:
Feature request
Assigned:
Reporter:
Created:
18 Nov 2009 at 15:02 UTC
Updated:
20 Oct 2013 at 20:51 UTC
Jump to comment: Most recent file
Curently if i give a node date range, exm. "November 1, 2009 - November 30, 2009" when i try to filter nodes in views by date for example "November 5, 2009" i dont get this node shown. How could i have range of dates in single node that could be seleced by any date in that range without having to select day by day and adding 30 dates in month to have it filter in this way.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | date_filter_contains-636208-8.patch | 2.93 KB | anrikun |
| #7 | date_filter_contains-636208-7.patch | 1.54 KB | anrikun |
| #3 | Date Range Includes operator.jpg | 141.11 KB | arlinsandbulte |
Comments
Comment #1
arlinsandbulte commentedWhat if you used date >= node start date AND date <= node end date
Comment #2
Marko B commentedI dont think u understode me. I have date CCK field in which i select date from & date to for a CCK field, but when filtering it i cannot filter this field other than if i select "from 1/11/2009 to 30/11/2009" and i would like to select 15/11/2009 or 20/11/2009 and also have this node shown.
Comment #3
arlinsandbulte commentedOK, so I took another look at this issue.
If I understand correctly, you want an additional filter operator that says something like "Date Range includes"
See attached image.
That sounds like a reasonable feature request to me.
Please confirm if I am on the right track.
Comment #4
vince.rowe commentedHi there,
That additional filter sounds perfect for some of our current projects. Searching for dates when using CCK date range is a bit tricky without this "Date range includes" filter.
Would love to see this added.
Comment #5
vince.rowe commentedIs this feature still being looked at?
Many thanks,
Comment #6
anrikun commentedI need this feature too and I'm OK to submit a patch.
But before, I need to know if patches adding new features are accepted for 6.x?
Comment #7
anrikun commentedHere is a first version, that works this way:
- in Date field(s), select either start date field or end date field but not both
- as Operator, select Contains
- expose the filter
That's it!
Comment #8
anrikun commentedHere is the same first version for 7.x-2.x.
Comment #9
stefan lehmannThanks a lot anrikun. This just saved me a lot of headaches!
I'll add some keywords to this issue, because I didn't find this patch, but my rather experienced collegue dman did. I was looking for an exposed date filter for Drupal Views which shows running events (multi day events) by entering a single date.
Comment #10
cimo75 commentedWow, why isn t this implemented yet? Been waiting for this for ages. Tx a lot
Simone
Comment #11
anrikun commented@cimo75: a user who has reviewed the patch (like you :-) must mark it as "reviewed & tested by the community" for it to have a chance to get committed. I can't do it myself as I'm the author of the patch.
Comment #12
cimo75 commentedThis is a major feature, please make it into the module!
Comment #13
cafuego commentedFixed in 7.x-2.x.
Comment #14
cafuego commentedFixed in 6.x-2.x.