Hi,
In order to add a new view for the calendar you have to:
1) Add a button in the calendar toolbar (public/assets/javascript/og/CalendarToolbar.js)
i) On line 56, add a new object to topToolbarItems like this one:
timeline: new Ext.Action({
text: lang('timeline'),
tooltip: lang('timeline'),
iconCls: 'ico-timeline',
handler: function() {
cal_actual_view = 'timeline';
var date = calToolbarDateMenu.picker.getValue();
changeView(cal_actual_view, date.getDate(), date.getMonth() + 1, date.getFullYear(), actual_user_filter, actual_status_filter);
}
}),
ii) After line 293, add after the entry for view_date:
this.add(topToolbarItems.view_date);
2) Add an action timeline() to the EventController (application/controllers/EventController.class.php)
3) Add a view for the timeline (application/views/event/timeline.php)
To include the toolbar in the view you have to define a <div> like this
<div id="calendarPanelTopToolbar" class="x-panel-tbar" style="width:100%;height:30px;display:block;background-color:#F0F0F0;"></div>
and then this javascript code:
var ogCalTT = new og.CalendarTopToolbar({
usersHfId:'hfUsers',
companiesHfId:'hfCompanies',
renderTo:'calendarPanelTopToolbar'
});
also need to include js files:
require_javascript('og/tasks/TasksTopToolbar.js');
require_javascript('og/CalendarToolbar.js');
require_javascript('og/CalendarFunctions.js');
require_javascript('og/EventPopUp.js');
and set values for variables (like it's done in viewweek): user_filter, status_filter, year, month, day and ogCalendarUserPreferences.
If you have any questions don't hesitate to ask,
greetings