This topic contains 5 replies, has 4 voices, and was last updated by wgozdzicki 6 years, 11 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- April 19, 2017 at 10:47 pm #30593
Hi,
Currently there is daily view on dashboard calendar, but instead I want to show week view on calendar.
Thankx
- CreatorTopic
- AuthorReplies
- April 20, 2017 at 1:08 am #30594
Hello,
This widget allows only a daily view. Although if you click name of the calendar, you will be forwarded to full calender with monthly, weekly and daily view.
April 20, 2017 at 7:21 am #30595Hi prganvani,
it’s open source
so it’s not possible itself is not possible :)So, let me tell how you can achieve this.
Just do one thing, copy calendar view file from vendor to the app directory of your project.
for your reference How to Override Templates from Third-Party Bundles .Copy and replace code with following code in your twig file.
PHP1234567891011121314151617181920212223{% set dashboardCalendarOptions = {widgetId: widgetId,calendar: entity.id,aspectRatio: 2,calendarOptions: calendar,eventsItemsJson: render(path('oro_api_get_calendarevents', {calendar: entity.id, start: startDate|date('c'), end: endDate|date('c'), subordinate: true})),connectionsItemsJson: render(path('oro_api_get_calendar_connections', {id: entity.id})),eventsOptions: {defaultDate: 'now'|date('c', oro_timezone()),'containerSelector': '.calendar-events','itemViewTemplateSelector': '#template-view-calendar-event-' ~ widgetId,'itemFormTemplateSelector': '#template-calendar-event-' ~ widgetId,'defaultView': 'agendaWeek','firstHour': firstHour,'aspectRatio': 2,'recoverView': false,},connectionsOptions: {},colorManagerOptions: {colors: oro_config_value('oro_calendar.calendar_colors')}}%}you have to add 'defaultView': 'agendaWeek', to have week view. and same for month.
Cheers :)
April 20, 2017 at 9:43 pm #30596Hi sufiyan Malek,
Thanx for the solution it 100% working. :)
April 21, 2017 at 12:02 am #30597Week of Calendar on dashboard is working fine but the events and tasks are not showing in dashboard calendar view.
April 24, 2017 at 1:33 am #30598Hi prganvani,
Could you provide logs of application? And let me know, please, how you add tasks and events.Best regards
- AuthorReplies
The forum ‘OroCRM’ is closed to new topics and replies.