I've been trying to find a way to do this, but nothing seems to work...
Is it possible to get a specific 'view' of fullcalendar by specifying an argument to the url?
EG. Can you force the calendar to display a week view for a specified week? or A day view for a specific date?
I can force the month view via /fullcalendar?year=2011&month=09&day=01
But how do you get week or day?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | fullcalendar-1206518-10.patch | 665 bytes | askibinski |
| #8 | fullcalendar-1206518-8.patch | 814 bytes | askibinski |
| #2 | fullcalendar-1206518-2.patch | 598 bytes | tim.plunkett |
Comments
Comment #1
aspilicious commentedYou can't :)
Comment #2
tim.plunkettThis should do it. Untested.
/fullcalendar?year=2011&month=09&day=01&mode=agendaDay
All options are here: http://arshaw.com/fullcalendar/docs/views/Available_Views/
Comment #3
aspilicious commentedNice! Should work indeed, didn't knew you could do that with fullcalendar. I thought it always used the first view of an array. But you can choose one. Nice :)
Comment #4
gmak commentedThat works! And a really fast response. tim.plunkett Rocks!
Now, how about this one?
Thanks.
Comment #5
tim.plunketthttp://drupalcode.org/project/fullcalendar.git/commit/9e3b79a
I think this can go back?
Comment #6
tim.plunkettFor D6 too: http://drupalcode.org/project/fullcalendar.git/commit/1ebf12b
Comment #8
askibinski commentedCurrently, this does not work at day-level. It works at month and week level but not at day level, because the parameter needed to be 'date' and not 'day'. See http://arshaw.com/fullcalendar/docs/current_date
Here is a patch to fix this!
Comment #9
aspilicious commentedI don't think we should add "date" in the url. But we can fix the bug
In stead of
We can do
Comment #10
askibinski commentedThanks for the fast reply. Yes, you're right, that would keep it backwards compatible.
Here's a new patch.
Comment #11
redndahead commentedThis patch is incorporated into the patch in this issue #1279588: Load additional events when using ajax
Putting it back to fixed.