Filtering to several content types results in fields being rendered for each relationship type which is fine however I only want to know if any type of relationship exists between two users i.e. I only want one field rendered even if there are several different relationships between two users. This is because I want a simple contact list based on relationships yet not specific to any type of relationship.

User relationships: Relationship exists
A relationship exists between users.

I just updated views to alpha3 which fixes the distinct bug so I can use distinct and put all my relationship types in comma separated list for relationship type filter.. it works however if each user has 1000 relationships and there are 1000 users, well I think distinct will grind server to a halt, regardless I think this feature might prove useless in other areas.

And would like drop down for exposed filter for existing relationship types.

CommentFileSizeAuthor
#4 UR-1.jpg130.17 KBOnlineWD™
#4 UR-1.jpg130.17 KBOnlineWD™
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnlineWD™’s picture

Actually seems to me that the filters are only useable from an admin point of view, I cannot get the filters to work based on a user to user condition i.e. if relationship exists between current user and that user, seems there's no relation at all - is all users who have a relationship to any user. Think it needs to be "users who have a relationship to current user" or the filters cannot be used in a user environment, instead only an admin or moderation environment. It may be possible and I haven't figured it out yet.

OnlineWD™’s picture

Have spent few more hours and found many posts. Have done a few things with Views Custom Fields and managed to print a field if relationship is approved between 2 users however it also prints empty rows for relationships that exist and have nothing to do with current user. I also tried working on some custom php on template file but it's not hooked up.

The problem is that the current filters load relationships regardless of WHO is viewing them i.e. administrative interface not user based interface. I think Relationship exists is correct name with option ..

(checkbox)
With current user []

This ought to filter relationships that do not include the current user. In fact it doesn't even need a checkbox because there's only 1 option I can think of - only needs description.

OnlineWD™’s picture

Managed to get filters working after reading this http://drupal.org/node/601734#comment-2149066 - seems like a long way round and I must enable Distinct because I only want one instance for each user in my contacts view table.

OnlineWD™’s picture

FileSize
130.17 KB
130.17 KB

Here's pic which might help some. I still think UR exists between current user and users uid is useful as it will cut several corners for certain types of view.

mrf’s picture

Version: 6.x-1.0-rc3 » 6.x-1.x-dev
Component: User interface » Views
mrf’s picture

I am postponing any 6.x feature requests that don't have a current applicable patch to help sort the large list of open features.

Please feel free to set to 'needs review' once a patch is included.

mrf’s picture

Status: Active » Postponed