Some events will have multiple dates for an event or repeating dates. Currently the addtocal module only outputs the first date as an event in the ics file. Providing patch in next post.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BTMash’s picture

Status: Active » Needs review
FileSize
1.67 KB

Added patch.

BTMash’s picture

FileSize
1.64 KB

Sorry, revised version of patch (the paths were incorrect).

pixelsweatshop’s picture

rterman’s picture

Can anyone confirm that this works? I applied the patch and nothing changed.

maen’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta3
Issue summary: View changes

and I couldn't patch this version

bdimaggio’s picture

Assigned: Unassigned » bdimaggio
FileSize
1.7 KB

I reworked @BTMash's patch against the latest dev version of the module, and I can confirm that it's working well for iCal--don't have a copy of Outlook handy to verify. But I figure this might help some folks out.

I'd also like to deal with this situation (recurring instances of an event, some of which might be in the past) for the other calendar types. It looks like neither GCal nor Yahoo Calendar will let us add more than one instance, so the sensible thing would seem to be to find the most imminent instance and add that. Would it be helpful if I tried to make that happen in addtocal_google_link() and addtocal_yahoo_link()?

bdimaggio’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
MhueD’s picture

Would an alternative approach to determining how to fix which time is getting properly exported be to have an option where EACH time has it's own button/function for creating the output file? I can see this being set at the widget in Manage Display for all cases or also giving the User the choice to click a button next to each time/item OR a button at the top for 'All Times'.

bdimaggio’s picture

I like that idea--it makes more sense to me as a user--but I'm afraid I can't take on the work that it would entail. Since I'm updating to the latest Add To Cal right now, I thought I'd just upload the patch for that version of the module. Hope this helps somebody!

bdimaggio’s picture

Version: 7.x-1.x-dev » 7.x-1.0
smurfxx’s picture

Is this patch included in the latest non-dev release?
I have a node with 3 dates and only 1 is showed and added to calendars.

bdimaggio’s picture

No, it shouldn't be, smurfxx--you'd have to dl and apply it yourself.

antiorario’s picture

Modifying Ben's patch at #9 to make sure it can be applied through Composer Manager and cweagans/composer-patches.