By somebodysysop on
There's an ICal button on just about every event view (Month, Week, Day). Is is possible to have one on a single event? Thanks.
There's an ICal button on just about every event view (Month, Week, Day). Is is possible to have one on a single event? Thanks.
Comments
Just add "/ical" to the url,
Just add "/ical" to the url, for example if your event is located at
/?q=node/7if you go to/?q=node/7/icalit will download the ical feed.You need to create a template for your content type, for example node-event.tpl.php and add a link to the node page slash ical.
Your post is one year old, hope this to continue being relevant to you.
Javier
Better late than never...
Yes, thank you for the response.
I am searching for exactly
I am searching for exactly the same function... but i can't get your explanation :D
When i add "/ical" to my node it opens a download window like if i would download the icalfeed. But instead of downloading the .ics file i'm becoming a message that the file could not be downloaded, because the file / the site could not be found. If i'm downloading the feed in the calender view it works all fine.
Have i forgot something ?
I'm using Drupal 5.15 and the event manager modul 5.x-1.0.
Thanks
Solution
Well.... i found a solution ;)
I had to activate "clean-urls" and then i must create a link to the node. So if i want to have an ical-feed to node 23 i have to create the following, clickable link somewhere on my drupalsite: www.mywebsite.com/node/23/ical . When i click on this link it starts a new window that asks me if i want do download the feed and everything works fine ! :D
Greetings
Does this work for D6?
I'm trying to do the same in D6, but need a bit more help with the steps as doing a /ical doesn't seem to do anything.
Thanks
Mark
subscribing. adding /ical
subscribing.
adding /ical does nothing in D6
subscribing
No luck with /ical in D6
someone has done this
someone has done this successfully using a different method here: http://drupal.org/node/742146
Made this work using Content Templates
In Drupal 6, the /ical (the path to you iCal feed) doesn't actually go after the node address, but the path appears to be before it. I accomplished this by adding the below information to the teaser and body content templates.
<p class="ical_teaser"><a href="/calendar-date/ical/node/<?php print $node->nid ?>"><img src="/sites/all/modules/date/images/ical16x16.gif" alt="Download this event" /> Add to your calendar</a></p>