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) »
  • Custom fields in participant table: Correct way?
Pages: [1]

Author Topic: Custom fields in participant table: Correct way?  (Read 469 times)

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Custom fields in participant table: Correct way?
August 17, 2011, 08:58:16 am
When an administrator searches for a event participants we wanted to have the following:
  • Total Number of Participants where custom_value is 1 vs. 2
  • If a custom value is filled out (e-mail of a dance partner), show if the dance partner is registered
  • Sort by custom_value and display of the custom_value

I ended up modifying Query.php (to get the custom values from the table), Search.php (to translate the values into labels and put some conditions in as well, e.g. finding if the partner has registered) as well as Selector.tpl (to display the totals at the top of the table and the additional columns). I put these in my civicrm_custom folder.

Is this the correct way of doing that or did I miss a hook somewhere down the line?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom fields in participant table: Correct way?

This forum was archived on 2017-11-26.