I am using date_recur Recurring Dates Field.

I can't seem to have an entity with a date_recur date.

Comments

SocialNicheGuru created an issue. See original summary.

michalsen’s picture

having issues with this as well...

psf_’s picture

jplana’s picture

Version: 8.x-2.2 » 8.x-2.x-dev
Status: Active » Needs work
StatusFileSize
new1.4 KB
new27.9 KB

I'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.

brooke_heaton’s picture

I assume folks have seen the work that was done here? https://github.com/dakala/fullcalendar/pull/22/commits/f5a3b7ff1cbbe1d74...

mrpauldriver’s picture

I'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.

solithus’s picture

Status: Needs work » Needs review
Issue tags: +3065044
Parent issue: » #3065044: Get date_recur to work with fullcalendar_view 8.x
StatusFileSize
new3.46 KB

Howto 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..

solithus’s picture

Issue tags: -3065044
Parent issue: #3065044: Get date_recur to work with fullcalendar_view 8.x »
StatusFileSize
new3.33 KB

Howto 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..

mandclu’s picture

I 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.

mrpauldriver’s picture

Patch at #7 is not applying to Development version: 8.x-2.x-dev updated 4 Feb 2020 at 23:47 UTC

ifrik’s picture

Status: Needs review » Needs work

This 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-&gt;__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, &#039;views_view_fullcalendar&#039;, Array) (Line: 287)

(b) "Ends: never"
>LogicException: Cannot get all occurrences of an infinite recurrence rule. in <em class="placeholder">RRule\RRule-&gt;getOccurrences()</em> (line <em class="placeholder">746</em> of <em class="placeholder">/app/vendor/rlanvin/php-rrule/src/RRule.php</em>).

JOJOJOJOJOJOJOJOJOJOOOOOOOOO’s picture

Issue summary: View changes
JOJOJOJOJOJOJOJOJOJOOOOOOOOO’s picture

Issue summary: View changes
JOJOJOJOJOJOJOJOJOJOOOOOOOOO’s picture

You 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 :)

johnv’s picture

Title: Get date_recur to work with fullcalendar_view » Get date_recur to work with fullcalendar_view 8.x
Issue summary: View changes
Related issues: +#3232221: Date Recur 3.x and Fullcalendar View 5.x

It 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.

mingsong’s picture

Status: Needs work » Closed (outdated)