Closed (outdated)
Project:
Fullcalendar View
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2019 at 21:34 UTC
Updated:
3 Apr 2023 at 01:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
michalsen commentedhaving issues with this as well...
Comment #3
psf_ commentedComment #4
jplana commentedI'm trying to make fullcalendar_view work with date_recur. Our event content type has a 'Recurring dates' field for our dates.
On the View > Fullcalendar Display > Settings I used our date_recur type field for both 'Start Date Field' and 'End Date Field' (screenshot attached).
I added a couple of conditionals in fullcalendar_view.theme.inc:template_preprocess_views_view_fullcalendar() to allow date_recur type fields.
So far:
Fullcalendar shows the events using a date_recur type field, without any recursion (one time events).
Missing:
Fullcalendar to show all instances of recurring events.
Please consider this a work in progress, and a first approximation to a potential solution.
Comment #5
brooke_heaton commentedI assume folks have seen the work that was done here? https://github.com/dakala/fullcalendar/pull/22/commits/f5a3b7ff1cbbe1d74...
Comment #6
mrpauldriver commentedI'm interested to see a calendar option for date_recur too.
I took a look at the github issue, but unless I'm missing something, it didn't seem to be going anywhere.
Comment #7
solithus commentedHowto make fullcalendar_view and date_recur work together.
On the View > Fullcalendar Display > Settings I used our date_recur type field for both 'Start Date Field' and 'End Date Field' (screenshot attached).
After added a couple of conditionals in fullcalendar_view.theme.inc:template_preprocess_views_view_fullcalendar() to allow date_recur type fields (like suggest Jplana).
I added a RRule Object from the library used for date_recur field to generate a list of occurrences for add it like a normal event to the events entries list .
few second after fullCalendar show the recurrent events :)
Done!
The end..
Comment #8
solithus commentedHowto make fullcalendar_view and date_recur work together.
On the View > Fullcalendar Display > Settings I used our date_recur type field for both 'Start Date Field' and 'End Date Field' (screenshot attached).
After added a couple of conditionals in fullcalendar_view.theme.inc:template_preprocess_views_view_fullcalendar() to allow date_recur type fields (like suggest Jplana).
I added a RRule Object from the library used for date_recur field to generate a list of occurrences for add it like a normal event to the events entries list .
few second after fullCalendar show the recurrent events :)
Done!
The end..
Comment #9
mandclu commentedI feel compelled to (selfishly?) point out that Smart Date 8.x-2.x now offers recurring date functionality, and has working integration with Fullcalendar View as discussed in #3061341: provide support for Smart Date and is already ready to support Fullcalendar View 8.x-3.x, as described in #3101524: Provide FullcalendarViewProcessor plugin to support Fullcalendar View. No extra joins or views configuration required.
Comment #10
mrpauldriver commentedPatch at #7 is not applying to Development version: 8.x-2.x-dev updated 4 Feb 2020 at 23:47 UTC
Comment #11
ifrikThis works with the date_recur field, but it breaks if a date is set to
(a) "Does not repeat"
InvalidArgumentException: The FREQ rule part must be one of the following: SECONDLY, MINUTELY, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY in <em class="placeholder">RRule\RRule->__construct()</em> (line <em class="placeholder">252</em> of <em class="placeholder">/app/vendor/rlanvin/php-rrule/src/RRule.php</em>). <pre class="backtrace">template_preprocess_views_view_fullcalendar(Array, 'views_view_fullcalendar', Array) (Line: 287)(b) "Ends: never"
>LogicException: Cannot get all occurrences of an infinite recurrence rule. in <em class="placeholder">RRule\RRule->getOccurrences()</em> (line <em class="placeholder">746</em> of <em class="placeholder">/app/vendor/rlanvin/php-rrule/src/RRule.php</em>).Comment #12
JOJOJOJOJOJOJOJOJOJOOOOOOOOO commentedComment #13
JOJOJOJOJOJOJOJOJOJOOOOOOOOO commentedComment #14
JOJOJOJOJOJOJOJOJOJOOOOOOOOO commentedYou also can create a fullcalendar_view preprocess for date_recur and this work really well, i'm using it and no need to patch or nothing :)
Comment #15
johnvIt seems to me that version 8.x-2.x is deprecated in favor of version 5.x.
So it seems that patch #8 is outdated.
If so, this issue can be closed as 'outdated'.
I tested #3232221: Date Recur 3.x and Fullcalendar View 5.x, and the Merge Request in that issue works perfectly. (I will add a patch though in order to support multiple_value fields). Initially, I did not understand comment #14. "How to get such a preprocessor?". But #3232221 does exactly that, and indeed without a patch - just adding a preprocessor that multiplies 1 field record into many recurring 'events'.
@mandclu (comment #9),
In order to add seasonal recurring dates into the Office Hours module,
I am comparing/testing both smart_date and date_recur.
I found that smart_date has a separate table for each occurrence, generated by a job from a RRULE, whereas date_recur just saves the RRULE in the field_data. The date_recur + preprocessor seems a more efficient way to me.
Comment #16
mingsong