How to make a View from today to future

deepM - January 6, 2009 - 17:44

I have content where i list future events, how can i filter out them to show only events that are today and in future and not the ones that were yesterday and before? Is it possible with views?

Don't want to cross post but this may be related.

grakhul - January 6, 2009 - 19:27

I have a similar issue that I am trying to find a solution to.

Issue 1> I want to search / filter my nodes or post by date if need be. Say I wanted to look up this Sat January 10. Or Sunday Jan 11th. Or any future post between Jan 10th and the 13th.

Issue 2> I want to expire nodes or articles that have elapsed into the past. Just outright delete them. Only I can't figure out how. Not only that, it is my users that will setting when their post will expire. I have created a cck field that allow users to enter the date of expiration of their node, but I haven't figured out a way to wipe them. I am thinking I will just have to make a cron job that goes into the db, looks at the date and deletes all posts with an expire time older than "now".

If anyone knows of a way to do this let me know. If this should be a seperate thread I will edit this one and repost.

=-=

VeryMisunderstood - January 10, 2009 - 00:32

options:

scheduler.module

actions & trigger.modules

Deep you ever get this

grakhul - January 10, 2009 - 00:30

Deep you ever get this working?

with views and date its

deepM - January 28, 2009 - 23:49

with views and date its easily solvable like suggested below

Daterange

TPerkins - January 10, 2009 - 00:41

Hey deepM,

Look into the daterange module.
http://drupal.org/project/daterange

Yes, possible with Views.

no2e - January 10, 2009 - 03:34

I have content where i list future events, how can i filter out them to show only events that are today and in future and not the ones that were yesterday and before? Is it possible with views?

I had a similar problem some days ago: Event/Calendar might be overkill ...

I bet your events have a CCK Date field? So you can use the "Date" filter in Views and set the value "now", as described here.

By the way, are your "future

grakhul - January 13, 2009 - 21:11

By the way, are your "future events" nodes? If so how bout we get to work on updating this?

http://drupal.org/project/auto_expire

This allows you to set an auto expire date on content types. I took a look at the code and it is only one page. It is basically setting up the db calls to make sure they are Drupal 6 calls, rather than Drupal 5.

 
 

Drupal is a registered trademark of Dries Buytaert.