Closed (fixed)
Project:
Agenda
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2010 at 18:57 UTC
Updated:
13 Mar 2010 at 11:10 UTC
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
Comment #1
aidanlis commentedGood suggestion - this is implemented now.
Comment #2
AlexanderPop commenteddoesn't work for me. I added code - no difference.
Comment #3
jrbDid you add "link" to the "Display fields" on the Agenda "Configure" page?
Comment #4
AlexanderPop commentedyes thanks. I use dev version now - works fine