gabrielhpugliese/meteor_supercalendar

Customisation of Collection to include user defined fields

ravic1995 opened this issue · 1 comments

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.