Answers.Body: <p>You could try using the <a href="https://civicrm.org/extensions/relationship-permissions-acls" rel="nofollow noreferrer">Permissioned Relationship</a> extension to provide the control over contact A seeing Contact B but not Contact C. And then also add Contact A (and all similar contacts) in to a Group and use that Group and Contact Layout to control what they actually see on the Contacts Summary screen</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-18T20:10:59.157Z
Answers.LastActivityDate: 2020-07-18T20:10:59.157Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>How about creating a Smart group for each relationship type or so and having the layout available to group of contact. If not using <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_apiWrappers" rel="nofollow noreferrer">Apiwrapper</a> hook you can alter the filters of 'ContactLayout' entity.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T11:49:46.297Z
Answers.Text: Okay, but what about if:
  
  User A is owner of Contact A but not of the Contact B.
  As the owner, User A is added to the smart group "Owners" - and users in this group have Contact Layout.
  
  But then he could just go to the Contact B and still see the "owner layout" is that correct? Even though he is not the owner of Contact B
Answers.UserDisplayName: pannga
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T12:09:17.563Z
Answers.Text: No, it's not what I'am looking for - Contact Summary Editor is not compatibile with smart groups and I want to be able to limit layout per contact not per group.
Answers.UserDisplayName: pannga
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T12:23:23.707Z
Answers.Text: I meant to add Contact A in smart group but it will still show the screen if Contact B is owned by someone else.. Contact layout does support smart groups
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T12:28:38.857Z
Answers.Text: You can also use hook to alter the condition
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T12:30:31.100Z
Answers.Text: I don't know how to use ApiWrapper or hooks correctly. I will try once again with the smart groups
Answers.UserDisplayName: pannga
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T13:01:38.717Z
Answers.Text: Contact Layout Editor sees smart groups (when choosing groups) but after saving the layout the extensions says the layout is avaliable to all users -> https://i.imgur.com/GTTC00E.png
Answers.UserDisplayName: pannga
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-19T11:46:52.077Z
Answers.LastActivityDate: 2020-02-19T12:27:56.853Z
Answers.LastEditDate: 2020-02-19T12:27:56.853Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>There is an extension called "Contact Summary Editor" by colemanmw which enables users to see specific parts of contact based on the group the user belongs to. During editing you can enable which ACL group is able to see which Contact Summary Layout.</p>
  
  <p>I am wondering if there is a way to overwrite this extension to be able to choose which relationship enables certain Contact Summary Layout. For example, if the user is the relationship with the "Contact A" and this relationship is called "Owner of", then the user can see the most informations regarding "Contact A" and so on.</p>
  
  <p>Have any one stumbled upon Contact views based on relationships? </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-03-20T19:04:12.983Z
Comments.Text: This is a great feature request.  I've actually received a very similar request, but I actually need to more conclusively block the data from appearing *anywhere* - e.g. searches and reports, not just the contact summary page.  It's proven to be pretty tough.  I think modifying the contact summary layout extension is an easier job.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <relationships><contact-summary-editor>
Title: Contact Summary Layout based on relationship
ThreadText: # Contact Summary Layout based on relationship
  
  (Asked by: username_0 on 2020-02-19)
  
  There is an extension called "Contact Summary Editor" by colemanmw which enables users to see specific parts of contact based on the group the user belongs to. During editing you can enable which ACL group is able to see which Contact Summary Layout.
  
  I am wondering if there is a way to overwrite this extension to be able to choose which relationship enables certain Contact Summary Layout. For example, if the user is the relationship with the "Contact A" and this relationship is called "Owner of", then the user can see the most informations regarding "Contact A" and so on.
  
  Have any one stumbled upon Contact views based on relationships?
  
  **Tags:** relationships, contact-summary-editor
  
  > **Comments:**
  > **username_1**: This is a great feature request.  I've actually received a very similar request, but I actually need to more conclusively block the data from appearing *anywhere* - e.g. searches and reports, not just the contact summary page.  It's proven to be pretty tough.  I think modifying the contact summary layout extension is an easier job.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-07-18. Score: 0
  
  You could try using the [Permissioned Relationship](https://civicrm.org/extensions/relationship-permissions-acls) extension to provide the control over contact A seeing Contact B but not Contact C. And then also add Contact A (and all similar contacts) in to a Group and use that Group and Contact Layout to control what they actually see on the Contacts Summary screen
  
  
  ---
  
  ### Answer by username_3 on 2020-02-19. Score: 0
  
  How about creating a Smart group for each relationship type or so and having the layout available to group of contact. If not using [Apiwrapper](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_apiWrappers) hook you can alter the filters of 'ContactLayout' entity.
  
  > **Comments:**
  > **username_0**: Okay, but what about if:  User A is owner of Contact A but not of the Contact B. As the owner, User A is added to the smart group "Owners" - and users in this group have Contact Layout.  But then he could just go to the Contact B and still see the "owner layout" is that correct? Even though he is not the owner of Contact B  
  > **username_0**: No, it's not what I'am looking for - Contact Summary Editor is not compatibile with smart groups and I want to be able to limit layout per contact not per group.  
  > **username_3**: I meant to add Contact A in smart group but it will still show the screen if Contact B is owned by someone else.. Contact layout does support smart groups  
  > **username_3**: You can also use hook to alter the condition  
  > **username_0**: I don't know how to use ApiWrapper or hooks correctly. I will try once again with the smart groups  
  > **username_0**: Contact Layout Editor sees smart groups (when choosing groups) but after saving the layout the extensions says the layout is avaliable to all users -> https://i.imgur.com/GTTC00E.png  
  
  ---
  
  