Hi
Is there anyway to exclude flagged content from a view? I created a simple view that lists titles from specific content type, there is a rule that flags a node on the behalf of the user. I want to exclude all the nodes from view that have been flagged by users (i'm using uid context in the view). when I use the flag filter it only returns node that have been flagged but like i said I would like to exclude those flagged nodes from the view, can someone point me in the right direction? Thank you.

Comments

Desi Raaj’s picture

anyone?

joachim’s picture

Status: Active » Fixed

The 'flagged' views filter is a boolean, so should work for that. Make sure you've properly added the relationship in your view.

Status: Fixed » Closed (fixed)

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

bdanin’s picture

This is a a bit confusing. When setting up a flag for exclusion in Drupal 7 views:

  1. Under "Relationships"
    setup the flag you want to use (this is where you can use this filter to only show flagged content, the opposite of what you're looking to do)
  2. Add new Filter
    Choose "Flags: Flagged"
    Now under Relationship you will see the relationship you created in step 1, with the default name "flag"
  3. Mark it "Not Flagged" and it should work