Closed (won't fix)
Project:
Views Date Range Filter
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2007 at 21:22 UTC
Updated:
3 Sep 2007 at 22:41 UTC
Just like you can display all nodes published "today", I'd like the option to specify the day of the last node published. See the forum post where ubersoft requested this, which also has a PHP page snippet written by yours truly. I'd much rather have this as a view, so I can add other filters, arguments, etc.
Comments
Comment #1
douggreen commentedThis doesn't sound like a good fit for daterange. The mnemonic "today" is a pretty fixed date, at least something that any human being would pretty easily know. Whereas, last-published is more something that needs to be figured out, with some help from the computer. For this reason, I think that last-published should either be handled in an argument or a filter.
See Views 1.x module developer API. As a filter, you would need to define the filter in a hook_views_tables then define the filter handler. I'd start out with putting this in your own custom module. But after you have it done, I'd submit it as a patch to views/modules/views_node.inc and see what the wizard says :)