Download & Extend

Not able to add display of type "calendar_ical"

Project:Calendar
Version:6.x-2.x-dev
Component:iCal export
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hey

I've got an working calendar view created with the wizard. Now i decided to add iCal and enabled the Calendar-iCal module.

Is there any way to add a ical-display to an existing view? Bug, feature or stupid user?

greets Marco

Comments

#1

I'm interested in an answer also. I have some existing views that are working but would like to add the iCal feed. It doesn't appear to allow you to do that. Dave

#2

Same issue for me here. I enabled the ical calendar module *after* all the rest was set up, and now I cannot get the ical feed display onto the calendar view, no matter what I do. Subscribing.

#3

Version:6.x-2.2» 6.x-2.x-dev

I confirm the same issue in 6.x-2.x-dev. Can't create an ical display type. The option does not appear in the drop-down for selecting the display

#4

Confirmed, and subscribing. I find anything myself, I'll be sure to share.

#5

I found that if you 'reset' the view to the defaults, the ical display type will re-appear. You can then re-build your view.

#6

I've found the same, though unfortunately that's not much of a workaround in some situations. For example, I have an existing, heavily modified calendar view, wrapped in a module. Rebuilding from scratch isn't an option at the moment. I'm not sure if this should be handled in hook_install() or what, though it seems like these older views need to be amended with the new iCal support as soon as the module is enabled, and for those being loaded from a module-based default, the user should be notified that they will need to update their defaults with a new export. I get the feeling this is easier said that done.

FWIW, even when trying to edit the export manually, it seems like it isn't even finding the necessary plugin via views_fetch_plugin_data() (line 1800 of view.inc, in views_db_object::add_display(), called by new_display() in the export of a view I tried to merge from). I still don't completely grok the modules involved, and I'm not sure how much of my employer's time I can spend working on it right now, so feedback on this approach or any other insights would be appreciated.

#7

in calendar_ical.views.inc try filliping all the 'no ui' keys from true to false.

#8

Had same problem, flipping these no_ui values appeared to fix it.

#9

Status:active» closed (duplicate)

no_ui hack is useful, but marking this as a duplicate of #348871: Can't create iCal Feed.

#10

Good hack to expose iCal Feed Display option on existing Calendar when calendar_ical was enabled after calendar is built, and it works on an existing, cloned Calendar too!

Additional notes:

  • When you add the new "iCal feed" display, you might first see "Row style: Missing style plugin." Be sure to go into the Style: RSS feed (default) and select the unselected radio "iCal feed."
  • Go to Arguments, select Override, and Remove the default Date argument that all the other Calendar Displays use
  • Go to Filters, select Override, and add a Date (node) filter. Tailor to your liking, but probably it will be at least "is equal or greater than" + "now". Pick the date field you're looking at: Node create/update or a content/cck field.

Not comfortable with the hack? Revert your calendar_ical codebase back to 'hide ui' = TRUEs, and all will still be good in calendarville! (In fact, it's probably a good idea to do so so you don't worry about it with updates later)