Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 05:22 UTC
Updated:
17 Mar 2010 at 23:02 UTC
I'm trying to figure out how to make a view of nodes that are either older or younger than the current one - in other words how do I use the publish date of the current node as a filter? I can see hoe to make it an argument but the jump from there to using it as a filter is unclear (it would be so nice if I could put arg(0) in the filter default value and have it just work)
Comments
Comment #1
dawehnerQuite good question.
You could sure use hook_views_pre_query and change the filter settings.
Comment #2
esmerel commentedSolution suggested, no response.