I see on the JavaScript API documentation page how to create a custom module that allows switching to the day view by clicking on a day. That seems like it would be fairly common calendar navigation functionality so I was curious if that might be something added to the fullcalendar module itself instead of requiring a custom module?

If not I can create the custom module... I just wanted to check first.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett
Category: feature » task

I like the idea. I'll work on it soonish.

caschbre’s picture

I created the custom module just to see how it works. Here are some thoughts...

(I don't know enough on javascript to make drupal interact with javascript to do the following)

- Make a configuration setting that to set which day view (agenda vs basic) is used when clicking on a day.
- Make the mouse cursor change so the user knows they can click on the day.

And not sure if this particular thing is related just to this feature request or should be it's own... but when a user changes the view to navigate to a day, week, month, etc. when they click on an event that opens in the same window, there is no way to return to the calendar view they were just on. It returns them to the default calendar view. I don't know if it's worth putting the query string in the URL whenever they change views.

tim.plunkett’s picture

The part about retaining the view when hitting the back button is more the domain of views itself: #343535: Enable bookmarking of AJAX views

The configuration is what I plan to tackle first.

tim.plunkett’s picture

Status: Active » Needs review
FileSize
2.46 KB

See attached. You'll have to go to admin/config/user-interface/fullcalendar/options to enable the new options if you're not installing from scratch.

The interface text probably needs some work.

aspilicious’s picture

Status: Needs review » Needs work

Couple of problems with this (and the options module in general)

1) I get this warning when saving ANY fullcalendar options setting in views

Recoverable fatal error: Argument 1 passed to drupal_array_get_nested_value() must be an array, null given, called in C:\xampp\htdocs\fullcalendar\sites\all\modules\fullcalendar\includes\views\plugins\fullcalendar_plugin_style_fullcalendar.inc on line 218 and defined in drupal_array_get_nested_value() (line 6348 of C:\xampp\htdocs\fullcalendar\includes\common.inc).

2) Nested elements like the select box are shown when you disable the option in the admin screen. I disable 'all day' this makes the checkbox dissapear but the select box appears in the views settings.

tim.plunkett’s picture

Assigned: tim.plunkett » Unassigned
Status: Needs work » Needs review
FileSize
2.53 KB

@aspilicious For 1), I've heard other people with that problem, haven't been able to reproduce. Does it happen before this patch? If so, let's open a new issue.

2) That's my mistake, new patch addresses it.

tim.plunkett’s picture

Changing the default value.

I wish I knew how to reproduce that bug :(

aspilicious’s picture

rtbc with concerns...

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community
tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.