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) »
  • Commenting out ical
Pages: [1]

Author Topic: Commenting out ical  (Read 789 times)

jawnski

  • I’m new here
  • *
  • Posts: 14
  • Karma: 4
    • California Association of HERS Raters
Commenting out ical
November 03, 2009, 05:31:16 am
I'm using civi 2.2 and the ical icon returns text only. Where can I comment out the ical icon so it does not show up on the registration pages? I've spent a lot of time trying to track down the file with no luck. When someone clicks on the ical icon this is what they get:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//CiviCRM//NONSGML CiviEvent iCal//EN
METHOD:PUBLISH
BEGIN:VEVENT
UID:CiviCRM_EventID_1_51378247ca1e25c992dffb35f6fc0cc4@www.gre
CALSCALE:GREGORIAN
DTSTAMP;VALUE=DATE-TIME:20091103T062951
DTSTAMP;VALUE=DATE-TIME:20091109T080000
DTSTART;VALUE=DATE-TIME:20091109T080000
DTEND;VALUE=DATE-TIME:20091113T170000
URL:http://www.greencaxxx.com/index.php?option=com_civicrm&task=civicrm/event/info&reset=1&id=1
END:VEVENT
END:VCALENDAR

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Commenting out ical
November 03, 2009, 05:53:07 am
jawnski :

When you click the iCal icon it spits out the feed. However if you do not  wish it to show up you might to comment it out in the files:
       templates/CRM/Event/Page/ManageEvent.tpl
       templates/CRM/Event/Page/DashBoard.tpl
       templates/CRM/Event/Page/iCalLinks.tpl

Here is the patch :

Code: [Select]
Index: CRM/Event/Page/ManageEvent.tpl
===================================================================
--- CRM/Event/Page/ManageEvent.tpl (revision 24791)
+++ CRM/Event/Page/ManageEvent.tpl (working copy)
@@ -1,6 +1,5 @@
 {capture assign=newEventURL}{crmURL q="action=add&reset=1"}{/capture}
 {capture assign=icalFile}{crmURL p='civicrm/event/ical' q="reset=1"}{/capture}
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&page=1"}{/capture}
 {capture assign=rssFeed}{crmURL p='civicrm/event/ical' q="reset=1&page=1&rss=1"}{/capture}
 {capture assign=htmlFeed}{crmURL p='civicrm/event/ical' q="reset=1&page=1&html=1"}{/capture}
 
@@ -10,7 +9,7 @@
 
 <a accesskey="N" href="{$newEventURL}" id="newManageEvent" class="button"><span>&raquo; {ts}New Event{/ts}</span></a>
 <div class="right">
-    <a href="{$htmlFeed}" title="{ts}HTML listing of current and future public events.{/ts}"><img src="{$config->resourceBase}i/applications-internet.png" alt="{ts}HTML listing of current and future public events.{/ts}" /></a>&nbsp;&nbsp;<a href="{$rssFeed}" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}"><img src="{$config->resourceBase}i/feed-icon.png" alt="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" /></a>&nbsp;&nbsp;<a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}"><img src="{$config->resourceBase}i/office-calendar.png" alt="{ts}Download iCalendar file for current and future public events.{/ts}" /></a>&nbsp;&nbsp;<a href="{$icalFeed}" title="{ts}Get iCalendar feed for current and future public events.{/ts}"><img src="{$config->resourceBase}i/ical_feed.gif" alt="{ts}Get iCalendar feed for current and future public events.{/ts}" /></a>&nbsp;&nbsp;&nbsp;{help id='icalendar'}
+    <a href="{$htmlFeed}" title="{ts}HTML listing of current and future public events.{/ts}"><img src="{$config->resourceBase}i/applications-internet.png" alt="{ts}HTML listing of current and future public events.{/ts}" /></a>&nbsp;&nbsp;<a href="{$rssFeed}" title="{ts}Get RSS 2.0 feed for current and future public events.{/ts}"><img src="{$config->resourceBase}i/feed-icon.png" alt="{ts}Get RSS 2.0 feed for current and future public events.{/ts}" /></a>&nbsp;&nbsp;<a href="{$icalFile}" title="{ts}Download iCalendar file for current and future public events.{/ts}"><img src="{$config->resourceBase}i/office-calendar.png" alt="{ts}Download iCalendar file for current and future public events.{/ts}" /></a>&nbsp;&nbsp;{help id='icalendar'}
 </div>


I recommend using custom templates to achieve the same.
For more details, refer : http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Commenting out ical

This forum was archived on 2017-11-26.