Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2009 at 03:36 UTC
Updated:
23 Mar 2010 at 13:00 UTC
In a filter I can specify 'now' to symbolize today.
Can I do the same with a views argument?
Chris
Comments
Comment #1
arlinsandbulte commentedYes, you can set the default argument to "Current Date"
Add an argument
Select "Date: Date (node)" or "Date: Date (users)" as your argument type
Under "Action to take if argument is not present:" Select "Provide default argument"
Under "Provide default argument options" Select "Current Date"
Choose the date field for your argument.
This will make the view argument default to "Current Date" when no argument is supplied.
Comment #2
socialnicheguru commentedmy view has the following url
myview/%term/listing/%date/%uid
so if I want to pass in todays date, how do I do that
myview/all/listing//1
or
myview/all/listing/now/1
Comment #3
arlinsandbulte commentedIt has been 3+ months with no activity.
Re-Open if you still need support regarding this.
Comment #4
socialnicheguru commentedStill need it. If I need to pass in the current date, how do I do that? In this case, I can't use the default argument.
Thanks.
Comment #5
karens commentedThat's what the default argument IS, you're saying you want the default to be the system date. There's no way to do this except a default argument, why can't you use one?
Comment #6
arlinsandbulte commented2 months with no activity after being set to 'postponed (maintainer needs more info)'