Tested and got the extension working with 0.8.1
Previously, /admin/page_events/:year/:month route required year and month to be present and within a suitable range for Time.local. The following urls should now redirect to /admin/page_events (i.e. index): * /admin/page_events/203/13 * /admin/page_events/1234567 Also, if month is not provided (e.g. /admin/page_events/2009), then the calendar shows january for that year.
Added a page.is_event? method, which returns true if the following conditions are met: * Parent page is of type EventArchivePage * Current page is not a day/month/year/season index page The page edit form appears correctly even if you are creating a new page. If the new page is a child of an EventArchivePage, the date fields show; otherwise, they don't show.
The case statement was returning EventArchiveYearIndexPage, but the class name is EventYearIndexPage, so I changed it. Also, the case statement had a day clause, returning EventArchiveDayIndexPage, but there was no such class, so I created one. Finally, changed 'event_datetime' to 'event_datetime_start' in event_year_index_page.
…o nuex/master Removed conflicting files and converting fork to the start and end time branch.
…y in their month Fixed nil error when no event_datetime_end was specified Updated TODO
* Day and Year indexes are missing * Basically working for monthly archives, but not well tested