CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event - Download iCalendar File under 2.0
Pages: [1]

Author Topic: Event - Download iCalendar File under 2.0  (Read 2195 times)

bchoc

  • Guest
Event - Download iCalendar File under 2.0
April 08, 2008, 01:12:38 pm
After the upgrade from 1.9 to 2.0, the
" » Download iCalendar File" appears on all events" with the iCal link.

Problematically, I work with some easily confused people, and my boss has asked me to remove the link.  I haven't found a configuration option that effects this, but that doesn't mean it is isn't there.  Or will this require a minor (or major) hack job?

Brian

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Event - Download iCalendar File under 2.0
April 08, 2008, 02:13:32 pm

the easiest option is to customize the required template and either make that link conditional or delete the link altogether

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Event - Download iCalendar File under 2.0
April 08, 2008, 07:05:14 pm
I noticed this too. Suggested change for future revisions:

The Event Info config screen has an option "Public Event? Include this event in iCalendar feeds?" -- it seems to me events that are not included in iCal feeds would also not have the iCal feed link present on their info/thank you pages. So let that option toggle the presence of the iCal link (as well as whether the actual event is present in the feed).

in "templates/CRM/Event/Page/EventInfo.tpl" wrap:

Code: [Select]
<div class="action-link">...</div>

in

Code: [Select]
{if $event.is_public eq 1 }...{/if}
do the same to: "templates/CRM/Event/Form/Registration/ThankYou.tpl"

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Event - Download iCalendar File under 2.0
April 09, 2008, 11:10:04 am
I'm not sure using the "Public Event" switch for this purpose makes sense. The Public switch determines which events are included in the "listing of public events" feed (which also can be used to feed calendars like Google Calendar or the Drupal Calendar module).

However, the iCal feed and download file offered on the Event Information page, Thank You page and email confirmation is specifically FOR THAT EVENT. It allows folks who are interested in / have registered for that event to quickly import that event's date, time and location into an iCal enabled personal calendar.
Protect your investment in CiviCRM by  becoming a Member!

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Event - Download iCalendar File under 2.0
April 09, 2008, 11:34:26 am
Ahh...

That's the danger of having a non-Mac user suggest solutions. I rescind my earlier suggestion.

Modifying the template on a per user basis is probably best then. Unless you want to add another option to the event screen. Not sure it's worth it.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

bchoc

  • Guest
Re: Event - Download iCalendar File under 2.0
April 10, 2008, 03:13:35 pm
Customizing that out of the theme is really easy . . . I feel silly for not thinking of that before posting.

Anyway, I don't think an option to remove it from this screen is really necessary.  An option to globally turn off all ical generation might make sense for some, but just getting rid of it from the event page takes about 2 minutes.

Brian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event - Download iCalendar File under 2.0

This forum was archived on 2017-11-26.