Hey Charles,
Great work Charles.
I was interested in being able to show that an event starts at a specific time, but not showing the end time on the detail page so I went looking through the class file to find the tpl files/chunks to see how I could customize the look of each view.
On line2770 you have
$theme_eventlist_tpl = $this->_getTheme('event.list.event',$this->config['mxCalendarTheme']);
$keys = array();
$values = array();
foreach ($ar_eventDetail as $key=>$value) {
$keys[] = '[+'.$key.'+]';
$values[] = $value;
}
$events .= str_replace($keys,$values,$theme_eventlist_tpl);
A better approach should be to have the template chunks for each view in the config file so that a user can customize them. The webloginpe snippet is what gave me this idea. It takes more time to program, but yields a much better outcome methinks.
Also, I’m wondering why when you create a repeating event it displays correctly in the event list, but when you click on it for the detail view it shows you the first event date / time and the last event date / time. I’m wondering if a better approach would be to make it so that when the user creates a repeating event, a unique row is created for each event, not just storing all the repeat dates in one field of one row. That would enable the detail page to display correctly or maybe when you click on the detail link there are parameters that get passed to the detail page that show that individual event’s day and not the date of start and end dates for all repeating dates.
If you go to
http://www.learnerdesign.com/calendartest.html? you can see that when you click on all the events on the page, it takes you to the same detail page. What would be better, would be if an additional parameter gets passed in the url that would be like
http://www.learnerdesign.com/calendartest.html?&details=100&date=05/12/2011
so that 05/12/2011 could be set into the start date parameter on the detail view page.
I really appreciate all your hard work and hope my suggestions are constructive.
-Noah