0

I have a view of content type 'video' which shows a preview videos of particular author. I have passed content id as contextual filter. Now,I want to show a node (video) to the other users but not the node author.How can I hide it from only the node author in my view?

0
1

Without Code:

To adjust views to show/hide author content...

  • under Advanced Tab create a Relationship, Content:Author, Require this field
  • create a new Filter, User:Current, Relationship Author(or whatever name you gave the relationship), Is the logged in user -> No

This will compare the author of the content to the currently logged in user and only show the content if they don't match. This method can be used to show only content by the current user by changing the 'Is the logged in user' -> Yes

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.