Is their a way of not showing events that have passed? I would have thought I could use a Filter for this but it doesn't seem to work.

In the Defaults tab of my Calendar View i've added a Filter of 'Date: Date (node)'.

In the 'Date field(s):' Ive chosen 'Content: Date2 (field_date2)'.
(During the wizard calendar set up I added a '2' to the field_date).

For the Operator Ive chosen 'Is greater than or equal to' and for 'Date default:' Ive chosen 'now' (without the inverted commas).

Should this work? Ive tried exposing the Filter and playing around with different Operators and setting the date manually but it has no effect on my calendar.
Thanks

Comments

jdln’s picture

In case it helps, i tried experiment with choosing 'Node: Post date' as the date field for the Filter and it still doesn't work.

jdln’s picture

Is this a support request or a bug?

jdln’s picture

Category: support » task
jdln’s picture

Category: task » bug
jdln’s picture

Id still love for this filter to work but ive got a work around for now.

From the tutorial 'Tutorial 3: Publish content based on a CCK date field'
http://drupal.org/node/520012

Change the action to unpublish and change this '[node:field_date2-datetime]' to this '[node:field_date2-datetime]+1 day'. The token will depend on your date field but this seems to be working for me.

The only problem is that you need to unpublish the event node, but this may be fine for some people.

Beezer75’s picture

I'm having the same issue. I've tried to filter the calendar view as well, same as described above, but no luck. The filter just shows everything. All I want is to create a list of upcoming events (pulled from the calendar) for the home page but it always shows events that have passed. I could always remove events manually but I would prefer to keep them on the calendar in case people want to look at past events. Any help is greatly appreciated.

AlfTheCat’s picture

+1 subscribing

challer’s picture

I ended up solving this by creating a filter of type "Date: Date (node)", select your cck date field, and then configure it to use the Operator "greater than" and the relative Date Default, e.g now +1 day. See screenshot http://screencast.com/t/6TL1D3k7L6PV.

ejohnson’s picture

Is this still a known bug n the Calendar? I've tried all types of things to the View and cannot get this to work.

Tried the stable and development versions of the Date and Calendar module. Tried the temp fix above.

lavisrap’s picture

In the calendar view there is an "Upcoming" display. I just set the filter like this display and it works fine.

Add a Date node, use default values (klick Update). Then click on Date: Date (node) and select "Is greater than or equal to", leave Year, Month and Day unchanged and write "now" in Data default field.

That did it for me.

sp_key’s picture

Issue summary: View changes

Just wanted to comment that this issue looks like it's fixed in Drupal 7.
I've managed to generate a view list of events excluding the ones that have a starting date which is greater than "now"

apaderno’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Category: Bug report » Support request
Status: Active » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.