A small patch to add events directly from calendar view, by clicking over the day number link.
It also works for multiple event-enabled node types, by displaying a "event type selection" page (similar to the "create content" page of Drupal core).

Next possible and useful improvement could be an AJAX pop-up menu over the calendar-view.

Comments

Luca Lenardi’s picture

Anybody has tested the patch? Please let me know.

Luca Lenardi’s picture

StatusFileSize
new5.86 KB

The same patch updated to work with the latest 4.7 release and with jsCalendar enabled.

gmak’s picture

Title: Add event from calendar-view » suddenly this doesn't work...

I've applied this patch in the past, but now it isn't working. I can click on the date, but it shows me the standard "add content" page rather than just my event types.

Is anyone else getting this behaviour? Know how to fix it?

Thanks

Luca Lenardi’s picture

Title: suddenly this doesn't work... » Add event from calendar view

It is very strange. Are you experiencing this behaviour with the patch released to work with jsCalendar?

Luca Lenardi’s picture

Ok. I have tried again the patch and I have experienced the same thing.
You only have to clear the cache, then everything works as expected.
Let me know if it works.

zuryasse’s picture

I definitely want this functionality, but don't know how to implement that patch. Is there a way for non-programers to have this?
thanks.

Luca Lenardi’s picture

Zuryasse, there are only two possibilities:

  1. The patch is being committed to the module core. This can be done only by the maintainer of the module.
  2. Try to apply the patch yourself, this is not as complicated as it seems: there is an helpful "how-to" on the Drupal web-site, more exactly here: http://drupal.org/node/60108

Bye.

jo1ene’s picture

This doesn't work for me. (Possibly because of OG module?) When clicking the day, I get to the create content main menu. I applied the latest patch intended to work with jsmenu and cleared the cache. When I get rid of -type in all instances (it doens't apply to my setup anyway) it works ok, although the group is not automatically selected. This is likely a OG calendar issue however.

killes@www.drop.org’s picture

Status: Needs review » Needs work

apparently needs work.

japerry’s picture

Status: Needs work » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.