Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We can use a custom initial date, nice. But how that date could be relative?
With an relative date it shoud be possible to show some the next month and even the month after the next.
I'm looking for an solution to show more than one month. An 3-month view would be nice and maybe I could create 3 views and use a custom initial relative date to show 3 diffrent month at all.
But maybe there is a better solution for an 3 month display. Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#5 | fullcalendar-support_relative_dates-2071933-5.patch | 2.79 KB | gisle |
#3 | fullcalendar.fullcalendar.inc_.txt | 21.63 KB | liquidcms |
Comments
Comment #1
mmtt CreditAttribution: mmtt commentednow ideas?
Comment #2
Spanners CreditAttribution: Spanners as a volunteer commentedThe ability to show multiple months of calendar items seems to be a reoccurring one, and one that still doesn't have a solid solution.
mmtt you have a great idea here. Setting a relative initial date would mean you could create a bunch of links to FullCalendars displaying items in the future of past. It would also be better than this solution (which I couldn't get to work) because it would load quicker.
Comment #3
liquidcms CreditAttribution: liquidcms as a volunteer commentedwhat the title is asking for (allow relative dates) and what the description are asking for (show multiple months) are not the same thing.
but, going with the title this changes the checkbox in Views settings where we can pick to set an initial default date to be either static or relative.
also, i couldn't get git patch to work cleanly so i have simply attached the 1 file that has the change.
Comment #4
liquidcms CreditAttribution: liquidcms as a volunteer commentedchanged title, status, etc
Comment #5
gisleGreat job liquidcms! It works as advertised.
I've re-rolled the
.txt
-file from #3 into a regular patch that should be applied against the current 7-x.2.x-dev snapshot. This patch is attached.Comment #6
semanthis CreditAttribution: semanthis commentedone step further would be to make it possible to use a token from the first row, so that the initial month that shows up is actually the first one containing datas. Does anyone have an idea how to do this?