I'm not very good with Views and Panes, but I've almost completely managed to get what I want working.
I have User Relationships configured to have non-reciprocal relationships (so like Twitter, where "A follows B" does not necessarily imply that "B follows A"). I have a Pane that displays users followed by $current_user and I have cloned it to a new Pane displaying users following $current_user.
The Panel is almost working perfectly, with one exception — it is showing me the right number of profile links, but they're all links to $current_user's profile with $current_user's avatar, rather than links to $following_users' profiles with their avatars.
I changed the Fields section in the Pane definition to point to the requestee User profile picture and the requestee UID, but this doesn't seem to have fixed it. It's not the database query coming out wrong, I'm just displaying the wrong values for each relationship in this Pane.
I'm sure this is really very obvious, I just can't spot the setting I need to change from requestee to requester in the Views Pane interface.
Anyone able to point me to where I'm missing the obvious bit of configuration?
Edit: I've taken a screenshot of the configuration interface (linked, rather than embedded, as you'll want to look at it in a bigger scale than embedding allows). The Custom text in the Fields reads <a href="/user/[uid]">[field_user_image]</a>
. In the Contextual filters, I've set the Requester user filter to Exclude. The Argument input reads as follows:
Edit 2: Looking in the Custom text (<a href="/user/[uid]">[field_user_image]</a>
), I have Replacement patterns available:
[field_user_image]
== User: My profile picture[uid]
== User: Uid[nothing]
== Global: Custom text%1
== User relationships: Requester user title!1
== User relationships: Requester user input%2
== User relationships: Requestee user title!2
== User relationships: Requestee user input
But I can't work out how to make use of %1
or !1
in order to get the requester's [uid]
or [field_user_image]
, rather than that of the currently-logged-in user.