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)
Comment | File | Size | Author |
---|---|---|---|
#3 | control_eventoverlap-2972983-#3.patch | 2.62 KB | MikeTheBoat |
Comments
Comment #2
MingsongThanks MikeTheBoat,
If you could provide a patch or upload your own module, I would appreciate that.
Comment #3
MikeTheBoat CreditAttribution: MikeTheBoat as a volunteer commentedMingsong
Please find patch attached to add a view setting which allows/disallows event overlap in the calendar view. Comments welcome!
Comment #5
MingsongThanks MikeTheBoat for the patch.
It is applied to the release of 8.x-2.0-rc7
Comment #6
MingsongComment #7
Mingsong