AnswerBun.com

Views: List content NOT authored by the logged-in user

Drupal Answers Asked on October 26, 2021

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).

One Answer

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

enter image description here

Answered by No Sssweat on October 26, 2021

Add your own answers!

Related Questions

Node is not created, but nid is returned

2  Asked on December 26, 2021 by ziobudda

   

EntityDrupalWrapper->value() causes infinite recursion on user login?

1  Asked on December 24, 2021 by tigertrussell

   

Feed import breaks due to ajax error

1  Asked on December 24, 2021 by kenpeter

 

Multi site Image cache issue

0  Asked on December 24, 2021 by user99683

   

How to make relationships between users

1  Asked on December 22, 2021

   

Need CKEditor to encode special characters

1  Asked on December 22, 2021 by bemarlan

   

Checkboxes in a simple form are not displayed

1  Asked on December 22, 2021 by sebish

   

How to change scheduler date format in *_node_form

1  Asked on December 21, 2021 by oskar-calvo

   

hiding taxonomy terms on term page

1  Asked on December 21, 2021 by user3027413

   

TypeError on “drush config-export”

1  Asked on December 21, 2021

     

“Broken pipe” between Nginx and PHP-FPM

1  Asked on December 21, 2021 by stephen-winnall

 

Restrict delete operation on a node referenced by another node

2  Asked on December 19, 2021 by user48552

   

How to perform views date calculations using global math?

2  Asked on December 19, 2021 by tinohuda

   

Get menu link siblings

4  Asked on December 19, 2021 by erin-mclaughlin

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP