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) »
  • ICal Feed - Changing links
Pages: [1]

Author Topic: ICal Feed - Changing links  (Read 677 times)

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
ICal Feed - Changing links
July 06, 2012, 08:35:08 am
Hi All

I am using the ICal feed from CiviEvent to pull events into JEvents in Joomla.

This is working very well currently and looks promising, JEvents pulls in all the information it needs and displays this in a monthly calendar view which looks great.

The only down side I have at the moment is that the URL that the ICal feed (for each event) gives is http://www.morvargh-sailing.co.uk/index.php?option=com_civicrm&task=civicrm/event/info&reset=1&id=27

This means that at the moment the user see's the calendar, clicks on the link, goes to the JEvents infomation page and then clicks on the link above to see the Civi information page, and from there ultimately to the registration page.

What I'd really like to be able to do is ammend the ICal export so that it gives the link to the register page not the info page. So this link... http://www.morvargh-sailing.co.uk/index.php?option=com_civicrm&task=civicrm/event/register&id=27&reset=1

Is this possible?

I had a very quick look at administrator/components/com_civicrm/civicrm/CRM/Event/Page/ICalendar.php but really don't know what I've got to change or even whether I'm looking in the correct location.

Could anyone give me any pointers????

« Last Edit: July 06, 2012, 08:36:41 am by sailormatt »

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: ICal Feed - Changing links
July 06, 2012, 10:20:28 am

You might want to create a customized version of the template page and modify the event.url value

Try using the smarty modifier crmReplace, so something like:

URL:{$event.url|replace:'info':'register'}

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

sailormatt

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • Explore, Dream, Discover!
    • Morvargh Sailing Project
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 2.5.11
  • MySQL version: 5.1.41
  • PHP version: 5.5.30
Re: ICal Feed - Changing links
July 06, 2012, 12:33:10 pm
Fantastic!!!

That worked great!

Do you think anyone else may want the file to use as well?  Is there a way I can share this change if its any use to others???

Thanks Lobo!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • ICal Feed - Changing links

This forum was archived on 2017-11-26.