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 a new column to contact activity tab
Pages: [1]

Author Topic: Adding a new column to contact activity tab  (Read 1259 times)

Eman0684

  • Guest
Adding a new column to contact activity tab
February 04, 2009, 06:23:25 pm
I'm trying to figure out where and how I can add data to a contact's activities (not add an additional activity)
On the activity page there is a table that lists emails for example with some info about it, how could I extend that table to include some additional info. Is a core modification necessary or can that also be hooked into (didn't get that from what I've been reading).



Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding a new column to contact activity tab
February 05, 2009, 05:15:23 am
Can you describe your use case in detail. I am bit confused..

Kurund
Found this reply helpful? Support CiviCRM

Eman0684

  • Guest
Re: Adding a new column to contact activity tab
February 05, 2009, 07:16:12 am
When you view contacts (e.g go to Contact Search and just hit search), you will come to this page: /civicrm/contact/view?reset=1&cid=2 (or something similar).

At the top you have the tabs: "Summary, Payments, Pledges, Membershipts, Events, Activities,...,..."
Under the activities tab you have a table with the headings:

Type, Subject, Added By...,... I want to add another column here and associate a custom query with that tab (well not custom but a query that is used somewhere else).

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding a new column to contact activity tab
February 05, 2009, 07:30:45 am
I guess you will have to modify CRM/Activity/Selector/Activity.php getRows(); _getColumnHeaders()

If you are stuck ping us on irc #civicrm

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Adding a new column to contact activity tab

This forum was archived on 2017-11-26.