Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When clicking on iCal button, the file is downloaded without any specified name (hence format as well).
For Firefox it looks like [temp_name].part
For Chrome default
Is it possible to download the files with specified .ics format?
Comments
Comment #1
turtletrail CreditAttribution: turtletrail commentedComment #2
turtletrail CreditAttribution: turtletrail commentedFound this issue report http://drupal.org/node/1227128 on the previous version of the project.
None of the solutions listed there helped me.
I have just one contextual filter, which is a date.
I'm trying to attach iCal expord to month view, which has this url: calendar-field-date/month
The feed url is then: calendar-field-date/month/%/calendar.ics
does not work...
Comment #3
turtletrail CreditAttribution: turtletrail commentedyeah, thanks for active support...
ended up creating my own module doing the same functionality.
Comment #4
c0ldfury CreditAttribution: c0ldfury commentedYes, I'm having exactly the same problem and none of the 'solutions' work.
Comment #5
Traverus CreditAttribution: Traverus commentedI have found that this happens with sites that don't have "Clean URLs" enabled. I found putting this in my template file fixed the issue:
This will tell apache to send this as the given format and to download the file as 'calendar.ics'
You can put anything you want in the place of 'calendar'. Might be nice to make this a views configurable somehow or have the file name be something like 'event.[node:id].ics'.
Comment #6
babbage CreditAttribution: babbage commented(Somewhat of an aside regarding little-known functionality is that if you supply the link with
webcal://
rather thanhttp://
the feed will open automatically in many iCal-compatible applications directly, without the user having to open the file, and in that case the file extension should not matter. There is another issue here requesting this be added to the button automatically I believe.)Comment #7
coredumperror CreditAttribution: coredumperror commentedI'm going to look into fixing this in the 7.x-2.x branch, but I don't have time to hunt around in the 1.x branch to figure out a fix. If anyone would like to write up a patch for 1.x, I'll be glad to apply it.
Comment #8
coredumperror CreditAttribution: coredumperror commentedFurther research on this has led me to conclude that this problem is caused by a limitation in the Views module, and implementing a fix for this would unfortunately require similar work as what would be needed for #1529506: webcal:// Support. I simply don't currently have time to research the necessary implementation for this fix, so I'm going to postpone it until either someone does the research for me, or I find the time myself.
Comment #9
coredumperror CreditAttribution: coredumperror commentedI had a sudden brainwave today about how to apply Traverus' solution as a sortof-hack around the problem presented by sites with Clean URLs disabled. It really is a hack, rather than a real solution, but I think it'll work just fine until/unless a full solution to the URL issues for iCal feeds can be found.
I'm leaving this issue as "fixed", rather then "closed (fixed)", since this isn't really the right fix. I've committed the change, and the 7.x-2.1 release is now available.