I wanted to have the block show a link to the details of the event on the actual Google Calendar page. To do this, I added this code to the bottom of the _agenda_parse_event() function (before the "return $event;").

  $link = (array) $xml->link[0];
  $event['url']             = (string) $link['@attributes']['href'];
  $event['link']            = l(t('View'), $event['url']);

This allows you to add "link" to the "Display fields" on the Agenda "Configure" page.

Comments

aidanlis’s picture

Status: Needs review » Fixed

Good suggestion - this is implemented now.

AlexanderPop’s picture

doesn't work for me. I added code - no difference.

jrb’s picture

Did you add "link" to the "Display fields" on the Agenda "Configure" page?

AlexanderPop’s picture

yes thanks. I use dev version now - works fine

Status: Fixed » Closed (fixed)

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