Rank: Devotee
Joined: 8/22/2006 Posts: 72
|
Hi, we have created an events calendar based on ismails calendar control and a multi-category listing for events. Events can be assigned categories, filtered, paginated and sorted. Also you can specify start and end dates, locations etc.
the client has now requested that they would like to be able to make events repeat/recur at set frequencies. e.g. Daily, Weekly, Monthly etc. This should then display in both the listing and the event calendar.
I am unsure how to go about this as the calendar is currently based on displaying individual nodes for each event occurance. I need help on deciding on which option would work best/simplest.
Approach 1: Write an action handler that on create/update/delete of the event node edits a hidden property with a list of display dates (maybe a comma delimited list). this list would be generated from the start date, frequency and end date property types. The xslt extracts this to an array, loops through and outputs the events accordingly (effectively one master events, repeated in the output by xslt).
Write a user control form, then wrap it as a data type. This follows a similar approach to above, generating a list of dates to display. (however not sure how to do this, example code would be great)
any help guidance, code would be massively apreciated. Thanks in Advance
|