By gthing on
I have a view which uses an argument (not a filter) to show nodes from a single date. I would like to add a date picker to the header of the view so users can jump to a given day. I need to invoke the date picker popup and then have it jump to a URL with the selected date provided as an argument, but I'm unsure how to do that. Any help?
Comments
Hi, you would think this is
Hi, you would think this is an easy thing to do. Not the case! Anyone??
I suspect it may have to be written by hand.
I'm wondering how to do this, too.
The catch here is that the whole calendar itself is a date picker, right? At least in the case of a calendar displaying nodes. This is the case because even if you're viewing a single date, you can back out to the week, month, or year view and essentially pick your date from there. Still, that's an extra page load (at least) and a little waiting. It's also inconvenient.
It is for these reasons that I need to arrange to affix a smaller jQuery calendar at the top of the page to more easily navigate to a single date a few months down the road, etc.
One thing that I've thought about is altering the form with a custom module and grabbing the argument myself to draw the calendar that would function as a pseudo-exposed-filter and allow date selection. I would need to draw the calendar with the existing jQuery UI API and then separately (because I can't find a way to do it in the documentation) ensure that the dates within the datepicker are links to the days themselves, appropriately passing the arguments to the view.
This seems like a tremendous headache for something that seems like a common task, but because the calendar view itself functions in this way, perhaps it is not such a common request after all. That assumption is either incorrect, or a need exists for a simpler method of implementing this.
Web Developer, Iowa State University College of Veterinary Medicine