Answers.Body: <p>You can achieve this through following ways:</p>
  
  <ol>
  <li>Create <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Access+Control+Context+and+Overview" rel="nofollow noreferrer">ACL rule</a> through UI to View Contact of specific group.</li>
  <li>Create an extension and use pageRun hook to alter the $rows send to smarty template.</li>
  <li>Create an extension and use aclWhereClause hook to restrict contacts to show.</li>
  <li>Probably not sure apiWrappers or selectWhereClause might also be used.</li>
  </ol>
  
  <p>Note: Using #1 and #3 will be affected on all pages/forms/reports.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-10T16:40:09.493Z
Answers.LastActivityDate: 2018-01-10T16:40:09.493Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I want to customise the contacts relationships tab screen to show if the listed contacts (Individuals) belong to a specific group or not. I'm not sure where to start and would appreciate any pointers. I wasn't sure whether I needed to customise a template or create an extension that uses a hook...</p>
  
Tags: <relationships><hooks><templates>
Title: Customise Contacts Relationships Tab
ThreadText: # Customise Contacts Relationships Tab
  
  (Asked by: username_0 on 2018-01-10)
  
  I want to customise the contacts relationships tab screen to show if the listed contacts (Individuals) belong to a specific group or not. I'm not sure where to start and would appreciate any pointers. I wasn't sure whether I needed to customise a template or create an extension that uses a hook...
  
  **Tags:** relationships, hooks, templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-01-10. Score: 1 | Accepted answer
  
  You can achieve this through following ways:
  
  1. Create [ACL rule](https://wiki.civicrm.org/confluence/display/CRMDOC/Access+Control+Context+and+Overview) through UI to View Contact of specific group.
  2. Create an extension and use pageRun hook to alter the $rows send to smarty template.
  3. Create an extension and use aclWhereClause hook to restrict contacts to show.
  4. Probably not sure apiWrappers or selectWhereClause might also be used.
  
  Note: Using #1 and #3 will be affected on all pages/forms/reports.
  
  HTH
  
  Pradeep
  
  
  ---
  
  