As I am using the calendar views to manage bookings that are not allowed to overlap, I currently have to hack fullcalendar_view.js to add eventOverlap: false, as the default value is eventOverlap: true. This setting then stops event resize or drag and drop from clashing with an existing event.

It would be nice to standardise this functionality by adding a view setting with a checkbox field along the lines of 'alloweventOverlap' in Fullcalendardisplay.php which can then be passed into the drupalsettings via fullcalendar_view.theme.inc to be tested in fullcalendar_view.js. I have crudely tested this as proof of concept, but doubt that my code would stand up to expert scrutiny!

I have fixed the related issue of stopping event overlap on first creation or edit via the 'booking' form by writing a small additional custom module to validate the booking entry data AND set a booker-specific calendar colour (I only have a small number of bookers)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MikeTheBoat created an issue. See original summary.

Mingsong’s picture

Thanks MikeTheBoat,

If you could provide a patch or upload your own module, I would appreciate that.

MikeTheBoat’s picture

Version: 8.x-2.0-rc5 » 8.x-2.x-dev
Status: Active » Needs review
FileSize
2.62 KB

Mingsong

Please find patch attached to add a view setting which allows/disallows event overlap in the calendar view. Comments welcome!

  • Mingsong committed 459544a on 8.x-2.x
    Issue #2972983 by MikeTheBoat: Allowing/disabling event overlap in...
Mingsong’s picture

Thanks MikeTheBoat for the patch.

It is applied to the release of 8.x-2.0-rc7

Mingsong’s picture

Mingsong’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.