C
|
Chris Whitehead 6/8/2024 |
I'm guessing the calendar template might be using full calendar, if it is then you could try one of the following, I don't know the specific command for the version in the calendar template as they appear to vary. If you find where the calendar is initialised and try one of the following. $('#calendar').fullCalendar({ That will stop all events from dragging, if you want to stop certain events from been dragged then you could try "eventDragStart" . eventDragStart: function( event, jsEvent, ui, view ) { |
L
|
Luc Mombaerts author 6/14/2024 |
Dear Chris, Thank you for your suggestion. The calendar template is indeed using full calendar. There is a file fullcalendar.js where I see many options are set. This however has no effect. It is still possible to drag events. Best regards, |
C
|
Chris Whitehead 6/14/2024 |
@luc_mombaerts The command does seem to change depending on the version, hopefullly admin may be able to point to the version used in the template. @admin Which version of fullcalendar is used in the calendar template? |
L
|
Luc Mombaerts author 6/17/2024 |
Dear Chris, I found "FullCalendar v2.2.7" in the header of the fullcalender.js file. Best regards, |
C
|
Chris Whitehead 6/23/2024 |
@Luc Mombaerts From what I can see for that version, you can set editable in the event or global. The docs are here, V3 and V2 are the same commands. // You''ll need to find out where the calendar is initialised and put the "editable: false," in there as a parameter. setting to false at this point will disable all events from been dragged. // to disable spcific events from getting dragged, don't use the global "editable", you'll need the "editable: false" or "editable: true" in the event. you'll have to do this when the events are first loaded into the calendar. Here's an example in codepen. I hope this helps, I can't tell you where to put this code as I don't have the calendar template so I'm not sure how it populates the calendar. |
L
|
Luc Mombaerts author 7/1/2024 |
Dear Chris, I've been looking and searching in the template files. There is one file where I found the text "$('#calendar').fullCalendar({". Thank you for the suggestions you did. Best regards, |