Greetings

I am struggling trying to create a UR view.

How do I create a view with all nodes from users related to current user, of the relationship type "friends"?

(The "friends" relationship requires approval.)

Is this even possible? I have been struggling with this for ages, but I cant seem to make it work.

Thanks!

Comments

jonskulski’s picture

I would also like to know if this is possible in views.

Currently I have created a custom panel content type with custom SQL and would like to move it to views to support exposed filters etcc.

Great framework btw.

ltwinner’s picture

+1
This would be an excellent addition to this module if it was possible.

alex.k’s picture

Assigned: Unassigned » alex.k
Status: Active » Fixed
StatusFileSize
new5.51 KB

Something to point you hopefully in the right direction. Attached view displays content posted by user's relationships. By default it is visible as a tab on the user profile, but you can customize that as needed. Also it has some extra filters for content type, relationship type, etc. Beware of duplicates if you have more than one relationship with a user, and you have not restricted to a particular relationship type.

alex.k’s picture

StatusFileSize
new74.7 KB

The view in action

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jonskulski’s picture

Is there any way to include the user as well? (All nodes where USER FRIEND OR USER?)

Adding a user relationship between the user and themself (if even possible) would cause a lot of trouble with other pages of the site.

alex.k’s picture

This came up a number of times, pls look into views_or.module