I'd like to create a view that displays nodes for the current academic year, ie. on 6/30/2011, it'd display everything posted 7/1/2010-6/30/2011 and then on 7/1/2011, it'd display just 7/1/2011. I'm trying to get it so that one would not need to have to edit the view every year.
Comments
Comment #1
malcomio commentedMy first thought was that some PHP in a default argument would do the job, but an argument needs to only return one value.
How about a computed field returning a boolean to say whether the node was posted
You can use mktime
You'd then need to compare your node date with start and finish, and return true if it's within that range.
Then you can filter the view on your computed field value.
Not sure if computed field only updates on node updates, though.
Also this sounds similar, but not quite: http://drupal.org/project/views_daterange
Comment #2
dawehnerhttp://drupal.org/project/views_date_range_filter is perhaps for you too.
Alternative i can recommend you #731662: Hybrid Exposed Filters
Comment #3
iamjon commentedmacpharmer,
did you ever find a solution for this?
please update so others may benefit.
feel free to reopen the issue with more information and to address the comments above.
closing from a lack of activity.