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.

Comments

arlinsandbulte’s picture

What if you used date >= node start date AND date <= node end date

Marko B’s picture

I 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.

arlinsandbulte’s picture

Category: support » feature
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new141.11 KB

OK, 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.

vince.rowe’s picture

Hi 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.

vince.rowe’s picture

Status: Postponed (maintainer needs more info) » Active

Is this feature still being looked at?

Many thanks,

anrikun’s picture

Title: Show single date from range. » Date range: Expose a single filter to select events that start before the chosen date and end after the chosen date
Version: 6.x-2.4 » 6.x-2.x-dev
Component: Miscellaneous » Views Filter
Priority: Normal » Major

I 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?

anrikun’s picture

Assigned: Unassigned » anrikun
Status: Active » Needs review
StatusFileSize
new1.54 KB

Here 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!

anrikun’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
StatusFileSize
new2.93 KB

Here is the same first version for 7.x-2.x.

stefan lehmann’s picture

Thanks 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.

cimo75’s picture

Wow, why isn t this implemented yet? Been waiting for this for ages. Tx a lot
Simone

anrikun’s picture

@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.

cimo75’s picture

Status: Needs review » Reviewed & tested by the community

This is a major feature, please make it into the module!

cafuego’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in 7.x-2.x.

cafuego’s picture

Fixed in 6.x-2.x.

Status: Fixed » Closed (fixed)

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