Installed Calendar, Date, Date API, Calendar iCal.

I go to views->calendar->edit

There is no default iCal Feed display, so I attempt to create a new display. I select "Feed" and click on "Add display".

In "Basic settings->Style", the only option is "RSS Feed". I believe I need "iCal Feed". What to do? Or, is there another way to get iCal Feed working with Calendar? Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrissearle’s picture

Same issue here. iCal module enabled in modules, but no iCal Feed plugin for adding a views display to the calendar and adding a feed (also tried this) doesn't have an iCal feed. Not sure where to find the feed any more.

For me - 6.x-2.0-rc6 - not the dev build

SomebodySysop’s picture

FileSize
54.18 KB

A little help, please? I've attached a screenshot of the views screen I get when I try to add a "Feed" display to the Calendar view.

chrissearle’s picture

The root of the issue seems to be that the ical module has nothing in the views_display table. I have the following in mine:

http://img.skitch.com/20090108-4amt5syxmgy8uccw6d8wrb26s.png

Now - as to why there is nothing there I don't know. I'm also unsure of what goes in to the display_options field so I can't create one by hand either.

I've tried a disable/uninstall/renable of the ical module. No change.

googletorp’s picture

This issue is not actually a bug or a flaw, but the calendar module is designed this way. You are supposed to use the standard view that is created with the module and can be activated. this holds the skeleton for all calendar views. See the post by KarenS, the module maintainer here: http://drupal.org/node/294319

-Jakob

chrissearle’s picture

Er - I'm not sure what you mean here. I have _only_ the calendar view installed by the module. I have neither created nor cloned it. It includes all the standard things that the module installs _except_ ical.

SomebodySysop’s picture

FileSize
71.36 KB

I posted what is on my Calendar view edit screen here: http://drupal.org/files/issues/CalendarFeedView.jpg

You are supposed to use the standard view that is created with the module and can be activated. this holds the skeleton for all calendar views.

I have attached below a screenshot of my Views page which lists the "Calendar" view. I don't recall re-creating this. It was there after I installed the calendar.module. Note that "iCal Feed" is missing.

This issue has been driving me nuts for weeks now with not a clue as to how to fix it. So, for argument's sake, let's say we did something screwy like created our own calendar view. How do we get back to the place where the calendar module will make the "iCal Feed" option available to us? Use "Revert" option on the Calendar view?

googletorp’s picture

Your problem is quite interesting, though I don't know how you managed to get there. It seems that the calender standard view that comes with the module and has the required views like the iCal feed, has been hard coded. It has been done in such a way, that you can't even delete the different pages that comes with the view. I'm not even allowed to change the style of the iCal feed to anything other than iCal feed.
My advise would be to try to revert the standard calendar view and if that doesn't work, try uninstalling and reinstaling the latest version.

greg.harvey’s picture

I thought I remembered Calendar exposing additional displays in the Views module. I'm either mistaken or something has changed. Anyway, cloning the default calendar view and exporting it to code (optional) should allow you to edit everything. If you've screwed up the default view, revert will fix it (deletes *your* view in the database causing the Views module to fall back on the coded view provided by calendar.module). =)

SomebodySysop’s picture

Well, "revert" worked for me. I now see the "iCal Feed". Lots of work re-working the details of the calendar, but at least I got the default view back. If this works for the other person, we can mark this as fixed. Thanks so much for the help.

chrissearle’s picture

Yes. Revert also worked here. Now - here's something I don't understand.

Why does "disable the module, then via uninstall uninstall it then re-enable it" not fix this where revert does?

However - I'm not sure I want to dig too far deeper - I have a working calendar again.

googletorp’s picture

Without knowing for sure. Probably that portion of the data is saved in the views module, and the uninstall have not been made to delete that aswell.

greg.harvey’s picture

Indeed, if you saved the View in the database using the Views UI module then uninstalling and reinstalling the Calendar module would have no effect. This makes sense. The copy remains in the Views database because the Calendar module has no knowledge of it, so it can't delete it.

SomebodySysop’s picture

Status: Active » Fixed
KarenS’s picture

Correct. 'Revert' means 'remove this from the views database'. Nothing else will do that but 'Revert'. If you don't revert and there is old data in the database, it will still be there when you reinstall. It's easy to misunderstand that. Uninstalling and reinstalling Calendar actually accomplishes nothing at all and is not needed.

Glad you got this worked out.

Status: Fixed » Closed (fixed)

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

shushu’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Please describe how an "iCal feed" can be created.
Even when reverting as suggested, all I can see is "RSS feed".
And still, I believe there is no reason we must use "revert" = "iCal feed" should be available all the time.

greg.harvey’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

An ical feed IS NOT available all the time. Intuitive as that might be, it's not like that now. I don't know what's involved, as I'm not a developer on the project, but that's not how it works. If you want that, create a SEPARATE feature request and ask for it. Then the developers can respond.

For now, and as described above, the ONLY way to create a view with an ical feed is to clone the original calendar view prescribed by the module and edit it to suit your purposes. It's that simple.

HTH. =)

hawleyal’s picture

Workaround.

Steal the iCal feed display from the default Calendar view.

  • Clone the default Calendar view.
  • Delete all the displays except the iCal feed
  • Disable the default Calendar view

I haven't tried export/import. But that might work, too.

harking’s picture

Category: support » bug
Status: Closed (fixed) » Active

Ran into same issue with 2.2

This is a bug if you have to either destroy your calendar view or clone a calendar view.

psynaptic’s picture

Definitely agree with @harking.

Can we allow existing calendar views other than the default one provided by the calendar module to have ical displays added to them?

jenlampton’s picture

I don't think forcing people to loose their data is the right way to handle this. here's a use case:

Turn on calendar module, and customize the calendar view: add filters, fields, arguments, etc. Later, someone decides they want an ical feed. But, since the ical module was not enabled when the view was first created the iCal feed on the "default view" does no good without reverting the original view (and loosing data).

Are there plans to add this style plugin in a more versatile way?

cwithout’s picture

I second jenlampton. I have 3 views that are clones of the original calendar view. Each customized filters, relationships, and styling. My client mentioned nothing about iCal in the original spec. Now that everything's done, they asked, "Oh, and can we have an iCal feed?" It would be great if we could just add an iCal feed to a view the same way as an RSS feed, CSV, or XML (like in the Bonus: Views Export module).

I'd love to be able to add an iCal feed to a Date Browser view as well, since I have a view that uses a Date Browser views and exposes a taxonomy filter. That way the site's users could export an iCal feed for only events that match their filter.

AdrianB’s picture

Subscribing.

greg.harvey’s picture

I did suggest earlier that if folk think this is worth following up on it might be useful if a separate issue was raised - the title of this one bears no relation to the sentiment and it's already full of other noise regarding a different subject entirely. Surely we should create the "Make a Calendar style plugin for Views" feature request to focus things? (I'm not going to change the status, I'm tempted to re-close for the same reason as I stated here and in #17, but I don't want to end up in status ping-pong!)

akalata’s picture

I've closed #591400: Not able to add display of type "calendar_ical" as a duplicate of this, but see this comment for a dirty hack/workaround.

tstackhouse’s picture

Subscribing. The No UI hack mentioned in #25 seems to work fine, I don't see why it's disabled to begin with.

DamienMcKenna’s picture

Status: Active » Needs work
FileSize
2.02 KB

Here's a patch to disable the 'no ui' and 'no remove' settings. It needs some work, though, as there are other requirements for it to work correctly.

Anybody’s picture

Hi, is there still work in progress? I think the problem still exists or am I wrong? :(

Renee S’s picture

Yeah, it's still there in the latest. The "no ui" hack worked for me also; I flipped it in page, parent, and calendar_ical (but not rss).

jasonh’s picture

+1, also have same issue - glad I found this thread as I've been spinning around the Views UI for hours thinking "this must exist!". Glad to see I'm not alone here...

blackspiraldancer’s picture

+1 here too

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

The D6 branch is no longer supported so we're closing this issue. If you think this issue still exists in D7 you can open a new one.