1

I want to list all the content that was NOT authored by the logged-in user in Drupal 9.

Getting the list of content authored by the logged-in user is pretty easy.

  1. Create a View showing content.
  2. Add a required relationship to Author.
  3. Add a contextual filter User ID and set When the filter value is NOT in the URL to Provide default value User ID from logged in user.

But I'm stumped about how to negate this; I want the opposite (all content not created by the logged-in user).

1 Answer 1

1

In contextual filter, scroll all the way down, click on "▾ MORE" and check mark ☑️ Exclude

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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