First of all let me thank you for this great module.

I have noticed that the iCal icon relates to the entire calendar. If one saves it to one's Outlook, then he is saving the entire calendar, while there might be other events from other groups or other taxonomy terms that he/she is not interested to attend.

Therefore, it would be nice if every Event display (both inside the calendar views as well as inside the full open node) would have iCal icon at the bottom corner. So that the end-user knows that he is adding that particular event to his Outlook, and not the entire Calendar.

Also:
It would be nice if iCal icon would also feature a more elaborate alt text "Add this event to my Outlook or other such program" or something like that... because right now it is not clear to the end-user what that icon is for).

thank you

Comments

twirlingsky’s picture

I'm looking for this same functionality in the event module. I'd like it so that there is text that says something like "save to calendar" and then you get the option of ical, google, yahoo, outlook

mdowsett’s picture

Version: 5.x-1.0 » 5.x-2.x-dev

I thought I'd reactivate this feature request as it'd be very nice to have this.

An example of such a thing can be seen here. it's not a Drupal site but it's a good example.

So if each event would automatically have a similar button that reads "add to my calendar" that would run a similar script asking the user what calendar app they use on their computer and generate the proper file to add to their app.

I'm still using D5....but even if it was worked into D6, I'd be happy.

librarywebchic’s picture

I have this module installed for drupal 6 and after looking at bits of the code discover that http://yourdrupalsite.com/node/id/ical actually give you an iCal for that particular node. This fact doesn't seem to be documented anywhere I just found it by reading and analyzing the ical.inc code. You might try this and see if it works.

sdsheridan’s picture

So how can one get this to appear on the node display for an event type then, as it does on the other event displays?

sdsheridan’s picture

OK, I answered my own question. A bit of a hack to the event.module --- in function event_nodeapi, where the event module hooks into the node module. Under the 'view' case, I modified it as follows:

      case 'view':
        $node->content['event'] = array(
          '#value' => theme('event_nodeapi', $node),
          '#weight' => -10,
        );
        $node->content['iCal'] = array(  // added 2009-04-01 sdsheridan to get ical on each node
            '#value' => theme( 'event_ical_link', 'node/' . $node->nid . '/ical', 'this event' ),
            '#weight' => 1,
        );
        break;

I also modified the theme_event_ical_link function in the event.theme file to take an optional parameter, as follows:

function theme_event_ical_link($path, $item = 'this calendar') {
  return '<div class="ical-link">'. l('<img src="'. base_path() . drupal_get_path('module', 'event') .'/images/ical16x16.gif" alt="'.t('Add to iCalendar').'" />', $path, array('title' => t("Add $item to your iCalendar")), NULL, NULL, TRUE, TRUE) .'</div>';
}

This allows the title attribute of the link which creates the little pop-up help to have more meaningful text.

shawn

Anonymous’s picture

please remove

japerry’s picture

Status: Active » 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.