Hi, I want to use the calendar widget to visualize upcoming courses. The entity I'm using doesn't have an end-date or start-date (it is set up like day1, day2, etc) because it could happen that the course isn't consecutive. For example, a course could be on Monday then Wednesday and Friday. Is it possible to set this up using the widget?
Damian da Luz
Like you phrase it, the answer is no.
The calendar widget work with dates. So if you don't have dates, that would become a bit hard. Like I want light, but I don’t want to use a light source.
All jokes aside:
you need dates
You need multiple dates
Extend the model with a referenced entity 1-* which has a date attribute
Instead of having a single date attribute in your CourseEvent entity, you create an object with a date for each course day.
This allows you to show the list of days with the details of the referenced CourseEvent