Answers.Body: <p>You can't realy customise the main activities tab. However there are several other options to create other tabs which show activities which do allow more customisation.</p>
  
  <ul>
  <li><p><a href="https://github.com/artfulrobot/activitytabs/" rel="nofollow noreferrer">Activity Tabs extension</a> written by me, this offers a reasonably easy way to add tab(s) with filtered lists of activities and allows you to choose which fields (inc. custom) you want displayed.</p></li>
  <li><p><a href="https://civicrm.org/extensions/data-processor" rel="nofollow noreferrer">Data Processor extension</a> this is very flexible/powerful, but a bit more of a learning curve (well worth it!)</p></li>
  <li><p><a href="https://civicrm.org/extensions/extended-reports" rel="nofollow noreferrer">Extended Reports extension</a> - I've not used this but I believe it allows its reports to be embedded as tabs on a contact record.</p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-10T09:10:18.743Z
Answers.Text: You may want to take alook at this extension as well: https://github.com/systopia/de.systopia.fastactivity
Answers.UserDisplayName: Fabian
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-09T15:52:50.410Z
Answers.LastActivityDate: 2020-01-09T15:52:50.410Z
Answers.UserDisplayName: artfulrobot
Answers.Body: <p>The <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_summary/" rel="nofollow noreferrer">hook_civicrm_summary</a> might help you?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T10:33:08.117Z
Answers.Text: Thanks Erik, but I don't think that hook is called when presenting the Activities Tab activities listing.
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T09:42:07.163Z
Answers.LastActivityDate: 2017-07-11T09:42:07.163Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>I thought you were referring to the activities tab in the contact summary? Alternative is to create a copy of the report in an extension as described in the <strong>add a report</strong> section of <a href="https://docs.civicrm.org/dev/en/master/extensions/civix/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/master/extensions/civix/</a>. </p>
  
  <p>Once you have copied the report all you have to do is use the alterRow function to update the search results.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T12:31:54.277Z
Answers.Text: Hi and thanks again :-) I've updated the question with a picture to show which bit I'm referring to. It's the listing of activities that you see when you visit a contact's record and click Activities. Accessing this does not seem to fire `hook_civicrm_summary` nor `hook_civicrm_searchColumns` on 4.6 (not tried 4.7 yet).
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T13:00:06.473Z
Answers.Text: Try https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tabset/ ?
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T17:11:37.390Z
Answers.Text: That's for editing the list of tabs, not the content of the tabs :-( Thanks though.
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T17:36:39.430Z
Answers.Text: I guess there is nothing else than updating the page in an extension.....
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T11:56:59.980Z
Answers.LastActivityDate: 2017-07-11T11:56:59.980Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I used to hack the Activities BAO to change the search results to make the subject line something more useful; i.e. extract other data from particular activity types and auto-create a summary in place of the actual subject.</p>
  
  <p>I'm doing an upgrade and realised what a royal maintainance <a href="http://onlineslangdictionary.com/meaning-definition-of/pita" rel="nofollow noreferrer">PITA</a> this has become :-)</p>
  
  <p>I thought I could implement <a href="https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_searchColumns/" rel="nofollow noreferrer">hook_civicrm_searchColumns</a> but I've tried from a Drupal module and also from an extension created for the job but it does not appear to be being called for the tab selector? Is there another way? I've tried this on 4.6 and 4.7.</p>
  
  <p>I might not be explaining which bit I need to customise very clearly, so here's a diagram:
  <a href="https://i.sstatic.net/7PbBE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7PbBE.png" alt="screenshot"></a></p>
  
Tags: <developer><4.7><hooks><4.6>
Title: How to customise the activities tab listing
ThreadText: # How to customise the activities tab listing
  
  (Asked by: username_0 on 2017-07-11)
  
  I used to hack the Activities BAO to change the search results to make the subject line something more useful; i.e. extract other data from particular activity types and auto-create a summary in place of the actual subject.
  
  I'm doing an upgrade and realised what a royal maintainance [PITA](http://onlineslangdictionary.com/meaning-definition-of/pita) this has become :-)
  
  I thought I could implement [hook\_civicrm\_searchColumns](https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_searchColumns/) but I've tried from a Drupal module and also from an extension created for the job but it does not appear to be being called for the tab selector? Is there another way? I've tried this on 4.6 and 4.7.
  
  I might not be explaining which bit I need to customise very clearly, so here's a diagram:
  [![screenshot](https://i.sstatic.net/7PbBE.png)](https://i.sstatic.net/7PbBE.png)
  
  **Tags:** developer, 4.7, hooks, 4.6
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2020-01-09. Score: 1
  
  You can't realy customise the main activities tab. However there are several other options to create other tabs which show activities which do allow more customisation.
  
  * [Activity Tabs extension](https://github.com/username_0/activitytabs/) written by me, this offers a reasonably easy way to add tab(s) with filtered lists of activities and allows you to choose which fields (inc. custom) you want displayed.
  * [Data Processor extension](https://civicrm.org/extensions/data-processor) this is very flexible/powerful, but a bit more of a learning curve (well worth it!)
  * [Extended Reports extension](https://civicrm.org/extensions/extended-reports) - I've not used this but I believe it allows its reports to be embedded as tabs on a contact record.
  
  > **Comments:**
  > **username_1**: You may want to take alook at this extension as well: https://github.com/systopia/de.systopia.fastactivity  
  
  ---
  
  ### Answer by username_2 on 2017-07-11. Score: 0
  
  The [hook\_civicrm\_summary](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_summary/) might help you?
  
  > **Comments:**
  > **username_0**: Thanks Erik, but I don't think that hook is called when presenting the Activities Tab activities listing.  
  
  ---
  
  ### Answer by username_2 on 2017-07-11. Score: 0
  
  I thought you were referring to the activities tab in the contact summary? Alternative is to create a copy of the report in an extension as described in the **add a report** section of <https://docs.civicrm.org/dev/en/master/extensions/civix/>.
  
  Once you have copied the report all you have to do is use the alterRow function to update the search results.
  
  > **Comments:**
  > **username_0**: Hi and thanks again :-) I've updated the question with a picture to show which bit I'm referring to. It's the listing of activities that you see when you visit a contact's record and click Activities. Accessing this does not seem to fire `hook_civicrm_summary` nor `hook_civicrm_searchColumns` on 4.6 (not tried 4.7 yet).  
  > **username_2**: Try https://docs.civicrm.org/dev/en/master/hooks/hook_civicrm_tabset/ ?  
  > **username_0**: That's for editing the list of tabs, not the content of the tabs :-( Thanks though.  
  > **username_2**: I guess there is nothing else than updating the page in an extension.....  
  
  ---
  
  