How to list content that is not flagged

Last updated on
30 April 2025

Flags are usually used for marking content the user is interested in.

But sometimes the opposite is true: the user is flagging content she isn't interested in. For example, content she thinks is spam, offensive, or otherwise doesn't worth her time.

Another example: If the user is a moderator, she'd like to see content which isn't flagged, say, as "Reviewed", so she could review it.

For these cases we would like to show in our view only content which is not flagged. The "recipe" for doing this involves two steps:

  1. We start, as usual, by adding the flag relationship. The only difference is that now we uncheck the "Include only flagged content" checkbox. This will make our view list all content: whether flagged or not.
  2. We add the Flags: Flagged filter. We ask it to filter out flagged content. (In other words, in its settings form, under Status, we select Not flagged.)

Help improve this page

Page status: Not set

You can: