1

I have a site, where users can follow each other using Flag. Currently, I am able to create a view which shows content from all the user the currently logged in user is following. This is done adding a relationship to the flag.

What I am creating is a feed of posts, like in Facebook. So it should also show content posted by the current user along with user followed. But I am unable to do that unless the user follows himself.

Current Relationship setup.

1

In the relationship's settings, uncheck the setting that restricts content to that flag.

Use the regular view filters instead and have two filters with OR between them. They would probably be author: current and author: flag.

|improve this answer|||||
  • I have been using Drupal for close to a decade and I never knew there was an OR option in Views. :D Thank you so much for the help. – esafwan Jul 5 '17 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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