Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Events, tasks, Calendar.. What is what?
#2
This part of the application is really all wrong. It was conceived incorrectly and then pushed forward and maintained that way.
You may have not noticed yet, that email are ALSO saved in that same structure.

To my understanding the correct way to do this it to create ONE task or ToDo standard vtlib module and move ALL the information into that module. Then modify the calendar to work with that new module and throw away all the other stuff

That is drastic, a considerable amount of work and scary. I have installs with millions of records in there! I have no idea how long that could take.

I would recommend (and in fact it is what I am currently doing) to create a new module for your events and integrate those into the calendar. if you need to create an event for the calendar you can do it, but as a reflection of a record in your module.

The calendar will automatically detect modules that have dates and show them, if you time fields it will even show the record positioned int the right time slot. You will have to insert some records in a table to get full support but that is really easy (ask if you are interested and I will look it up). Then the Calendar has a save or change event corebos.filter.CalendarModule.save, you can plug into this event and detect drag and drop, and resize events on your records. So you can change the dats accordingly in your module.

Have a look at how timecontrol does it:

https://github.com/tsolucio/Timecontrol/blob/master/modules/Timecontrol/TCCalendarHandler.php

You will see timecontrol records in their time slot and you can resize or drag them and the record will get updated. In general it works very well. Just stay away from the old stuff.
Joe
TSolucio
Reply


Messages In This Thread
RE: Events, tasks, Calendar.. What is what? - joebordes - 07-27-2016, 05:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)