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) »
  • Insert custom data into EventInfo.tpl
Pages: [1]

Author Topic: Insert custom data into EventInfo.tpl  (Read 1258 times)

jgregory

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
Insert custom data into EventInfo.tpl
August 19, 2011, 03:35:46 pm
I have created custom data fields. I want to insert them into the EventInfo.tpl but I don't know how. See attached pic. I'm currently butchering EventInfo.tpl in an attempt to learn how to "call" the data I want.

Hoping it looks something like this; but with different values for custom_field.name

   <div class="crm-section">
       <div class="label"><label>{ts}test{/ts}</label></div>
       <div class="content">
       {if $custom_field.name}
           <div class="crm-section">{$custom_field.name}</div>
       {/if}
        </div>
      <div class="clear"></div>
   </div>


Noobie, but eager to learn...
John
« Last Edit: August 19, 2011, 03:39:18 pm by jgregory »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insert custom data into EventInfo.tpl
August 20, 2011, 01:54:48 pm
See http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+Public+APIs There are options there to get your custom field.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Insert custom data into EventInfo.tpl

This forum was archived on 2017-11-26.