meteor_supercalendar
meteor_supercalendar copied to clipboard
Customisation of Collection to include user defined fields
I would like to implement the package in such a way that the user can also define its own fields in the collection. If user wants the calendar events to be assigned to a certain user. The developer can add a field with userId and associate it with the Meteor.userId(). Making it easy for him to filter the collection for that particular user and display the events of a particular user only on the calendar.
You can do that now if you override the modal like I explain here:
https://github.com/gabrielhpugliese/meteor_supercalendar#custom-events
For example, you could render another modal that calls Calendar.insert()
with your own data.
But I agree that should be another easier way if you do not want to change the HTML.