Open preaction opened 5 years ago
The Yancy::Controller::Yancy::Calendar contains actions to display items containing calendar event information:
This controller will have all the actions from Yancy::Controller::Yancy and the following new ones:
month
collection
start_field
end_field
year
days
date
items
week
day
hours
hour
An example application should be added to eg/ to demonstrate this controller.
eg/
The Yancy::Controller::Yancy::Calendar contains actions to display items containing calendar event information:
This controller will have all the actions from Yancy::Controller::Yancy and the following new ones:
month
- A month view of eventscollection
- The collection to viewstart_field
- The field in the item containing the event's start date/time in ISO8601 formatend_field
- (optional) The field in the item containing the event's end date/time in ISO8601 formatyear
- The year to view (four-digit year)month
- The month to view (number, 01-12)days
- An array of hashes of day information including the following keys:date
- A Time::Piece object containing the date information, including year, month, and dayitems
- The events that start, end, or cross this dayweek
- A week view of eventscollection
- The collection to viewstart_field
- The field in the item containing the event's start date/time in ISO8601 formatend_field
- (optional) The field in the item containing the event's end date/time in ISO8601 formatyear
- The year to view (four-digit year)month
- The month to view (number, 01-12)day
- The day to start showing the week of events (number, 00-31)hours
- An array of hashes of hour information including the following keys:hour
- A Time::Piece object containing the date information, including year, month, day, and houritems
- The events that start, end, or cross this hourday
- A day view of eventscollection
- The collection to viewstart_field
- The field in the item containing the event's start date/time in ISO8601 formatend_field
- (optional) The field in the item containing the event's end date/time in ISO8601 formatyear
- The year to view (four-digit year)month
- The month to view (number, 01-12)day
- The day to view (number, 00-31)hours
- An array of hashes of hour information including the following keys:hour
- A Time::Piece object containing the date information, including year, month, day, and houritems
- The events that start, end, or cross this hourAn example application should be added to
eg/
to demonstrate this controller.