In Drupal Commons, using Panels, I'd like to change the behavior of the user page.

One variant for users to view their own page, and another for viewing other user pages. Also, I'd like to limit it so that only the trusted contacts of a user can view his/her page.

It is set up using panels, so first I added a variant with a selection rule: user: compare - User being viewed is not Logged in user. This works fine.

But how to configure it to limited to trusted contacts of a user. The context for user: user_trusted_contacts is already listed as an option, but I can't use it as a selection rule. There's no option there for "..user is one of".

I'm sure it can be done within panels, thanks for any help. D


  • Mind adding the Drupal version and editing the question so title had specific question and also try to concentrate to bringing up one specific issue? From this long elaboration it is not clear what exact question you'd like to ask the community.
    – AltaGrade
    Apr 4, 2018 at 15:42

1 Answer 1


I couldn't find a direct solution for this.

So as a workaround, I'm using Flags and Rules. Trusted contacts are flagged (explained in "How to create a rule to flag users when they're approved as a Trusted Contact?").

Once the flag is there you can then use it as a selection rule in panels.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.