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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding more data to the ical feed
Pages: [1]

Author Topic: Adding more data to the ical feed  (Read 867 times)

dragontree

  • Guest
Adding more data to the ical feed
September 14, 2009, 12:17:51 am
How can I add data from custom fields to the ICal template file? I know I have to use some kind of token for this, but how?

(I moved this question here from the "Using CiviCRM" forum.)

dragontree

  • Guest
Re: Adding more data to the ical feed
September 15, 2009, 10:08:09 pm
Not sure if i'm on the right track, so some advice would be appreciated.

I tried to add the custom fields by accessing the $viewCustomData array. Actually I was using it in EventInfo.tpl and I hoped it would work for the ical template also. But it didn't. In ICal.tpl output of {$viewCustomData|@print_r} is just "1", not the array. Why is that?

Another question about the $viewCustomData array. If I printed it on the screen it looked like this for me:
Code: [Select]
  Array (
[5] => Array (
[1] => Array (
[title] => Avalik
[name] => Avalik
[help_pre] =>
[help_post] =>
[collapse_display] => 0
[collapse_adv_display] =>
[fields] => Array (
[19] => Array (
[field_title] => Avalik
[field_type] => Radio
[field_value] => Yes
[options_per_line] =>
)
[21] => Array (
[field_title] => Avalik_tekst
[field_type] => Text
[field_value] => tekst avalikkuse kohta
[options_per_line] =>
)
)
)
)
)
I know that 5 is the custom data group ID and 19 and 21 are the field IDs. But whats that 1?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding more data to the ical feed

This forum was archived on 2017-11-26.