Hello,

Using CCK + Date + Date API + Views I'm creating an event calendar, for this I created a node type and entered my data.

The problem is with listing previous and upcoming events in blocks.

How do I filter this in views? In other words, I want Event nodes (type) where event_date (CCK filed name) is less than today's date. Similarly all the nodes of type Event where event_date is greater than equals to current date.

Please advice.
Thanks and Regards

Comments

hectorplus’s picture

I would install the calendar module http://drupal.org/project/calendar, it comes with blocks, page, upcoming views, you just need to modify it a bit to suit your needs

http://tecito.com

Vandana-2’s picture

Thanks