Answers.Body: <p>Some of the pages that you would expect to support <code>hook_civicrm_searchColumns</code> don't - they're mostly older screens that don't use the appropriate shared code.</p>
  
  <p>Ideally, we would rewrite these pages to use <code>CRM_Core_Selector_Query</code> so the hook fires.  Since that's not often feasible within a budget, I've resorted to using template overrides, with API calls within the override to pull in additional data.</p>
  
  <p>If you want to avoid overrides, you could probably use JavaScript includes.</p>
  
  <p>None of these are perfect, but short of rewriting the screens (a noble goal!) this is what we have to work with!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T15:45:52.100Z
Answers.Text: Thanks Jon. May be I'll try with template override with API calls. Thanks for quick response :) I really appreciate it. :)
Answers.UserDisplayName: Developer
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-02T15:39:42.313Z
Answers.LastActivityDate: 2017-11-02T15:39:42.313Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Is there a way to add additional field(s) in the relationship tab on a contacts record?</p>
  
  <p>as " <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_searchColumns/" rel="nofollow noreferrer">hook_civicrm_searchColumns</a> is not getting triggered for relationship.
  ( though this hook is helpful for contribution tab and other search results.)</p>
  
  <p>can any one please advice what would be best way forward to achieve this?</p>
  
Tags: <relationships><contact-view>
Title: Add custom data field column to relationship tab
ThreadText: # Add custom data field column to relationship tab
  
  (Asked by: username_0 on 2017-11-02)
  
  Is there a way to add additional field(s) in the relationship tab on a contacts record?
  
  as " [hook\_civicrm\_searchColumns](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_searchColumns/) is not getting triggered for relationship.
  ( though this hook is helpful for contribution tab and other search results.)
  
  can any one please advice what would be best way forward to achieve this?
  
  **Tags:** relationships, contact-view
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-02. Score: 2 | Accepted answer
  
  Some of the pages that you would expect to support `hook_civicrm_searchColumns` don't - they're mostly older screens that don't use the appropriate shared code.
  
  Ideally, we would rewrite these pages to use `CRM_Core_Selector_Query` so the hook fires. Since that's not often feasible within a budget, I've resorted to using template overrides, with API calls within the override to pull in additional data.
  
  If you want to avoid overrides, you could probably use JavaScript includes.
  
  None of these are perfect, but short of rewriting the screens (a noble goal!) this is what we have to work with!
  
  > **Comments:**
  > **username_0**: Thanks Jon. May be I'll try with template override with API calls. Thanks for quick response :) I really appreciate it. :)  
  
  ---
  
  